Portal Home  /  Knowledgebase  /  PHP  /  What extensions do I use for PHP?

What extensions do I use for PHP?

Guide from PHP — written for Canadian customers. Billing always in CAD.

PHP

To use PHP effectively—especially for modern web development—you'll likely need several PHP extensions depending on your project.

Essential PHP Extensions (General Use)

Extension Purpose
mysqli or pdo_mysql Connect to MySQL databases
mbstring Handle multibyte strings (UTF-8 support, required by WordPress, Laravel)
curl Make HTTP requests (used for APIs, file downloads, etc.)
json Work with JSON data (json_encode(), json_decode())
openssl Secure communication and data encryption
fileinfo Detect MIME types of uploaded files
tokenizer Used by PHP frameworks like Laravel
xml Parse XML data
session Manage user sessions (login systems, shopping carts)

 Image Processing Extensions

Extension Purpose
gd Basic image processing (resize, crop, watermark)
imagick Advanced image manipulation using ImageMagick (optional but powerful)

 Compression and File Handling

Extension Purpose
zip Work with .zip files
zlib Compress output pages (gzip)
bcmath High-precision math (used in ecommerce, payment systems)

 Internationalization & Localization

Extension Purpose
intl Handle dates, currencies, locale-aware formatting

💬 Debugging & Dev Tools

Extension Purpose
xdebug Debugging and profiling (step-by-step inspection of your code)

Was this answer helpful?

🇨🇦 Canadian support that answers

Chat or ticket — Vancouver & Toronto team, same timezone as most of our customers. Billing always in CAD.

Open a support ticket

Live chat

Quick questions while you’re working through this guide.

Start chat

More in this category

Browse other guides in PHP .

PHP →