PHP extensions: how to check what’s available

What PHP extensions are, how to see which are loaded for your PHP version, and what to do when an application says one is missing.

Guide2 min readLast updated
On this page
  1. Checking what’s loaded
  2. Extensions differ by PHP version
  3. When an extension is missing
  4. If it doesn’t work
  5. Common questions

Extensions add capabilities to PHP: talking to MySQL (mysqli, pdo_mysql), handling images (gd, imagick), international text (intl, mbstring), zip files (zip), secure connections (openssl) and more.

Checking what’s loaded

phpinfo: create a phpinfo file (How to check which PHP version your site is using) and scroll: each loaded extension has its own section.

A quick list:

<?php print_r(get_loaded_extensions());

Checking one extension:

<?php var_dump(extension_loaded('intl'));

bool(true) means it’s available. Delete test files afterwards.

Extensions differ by PHP version

Each PHP version has its own set. If an application reports a missing extension, check the version the domain uses — switching versions can change what’s loaded.

When an extension is missing

  1. Check whether the application actually needs it or merely recommends it. Site Health warnings in WordPress are often recommendations.
  2. Try another available PHP version and check again.
  3. If it’s genuinely required and unavailable, ask through the contact form (choose “Something only Traxio can do”) whether it can be provided, giving the extension name, PHP version and application.

Extensions can’t be installed from inside your account on shared hosting.

Choosing a host for a PHP project? Every Traxio account runs PHP 7.4 to 8.4 with a MySQL database: see PHP and MySQL hosting, £0.99 a month.

If it doesn’t work

These guides cover the most common problems, starting with what you can see. Or browse every fix for a common problem.

Common questions

Which PHP extensions are available?

The common ones most applications need are present. The reliable way to check for a specific extension is to create a page calling phpinfo() and look for it, then delete the page again — it reveals more about your server than you want public.

Spotted something out of date or unclear? Tell us and we’ll fix it.

Keep going