Skip to main content

PHP agent supported technologies

We support the following technologies for this agent.

Technology

Supported versions

Notes

Language version

  • 7.4, 8.0, 8.1, 8.2, 8.3, 8.4, 8.5

Agent 1.57.0 and later is built against the PHP security releases of October 21, 2026. It requires PHP 8.2.35 or later, 8.3.36 or later, 8.4.27 or later, or 8.5.12 or later. Run the agent on a patched version of PHP; any other configuration is unsupported.

If you install PHP from your Linux distribution, apply the distribution's latest security updates. Some distributions, such as Ubuntu, apply the fix to an older PHP version, so the number that php -v reports can be lower than the releases above.

The agent depends on the mbstring, json, and curl extensions. The json extension is built into PHP 8.0 and later.

Support only for NTS versions of PHP.

Application frameworks

  • Laravel 6 - 13

  • Symfony 5 - 8

  • Drupal 10 - 11

Servers

  • Apache

  • PHP-FPM

Other servers using mod_php or php-fpm may work but are not currently supported.

If you use PHP-FPM, set clear_env to no in the pool configuration for every pool that runs your application. With the default value, PHP-FPM clears the shell environment variables before they reach the PHP worker processes, which prevents the agent from functioning correctly. This applies to every installation method, including the Kubernetes operator.

You can usually find the pool configuration file in /usr/local/etc/php-fpm.d/www.conf in the official PHP Docker images, and in /etc/php/{version}/fpm/pool.d/ on Debian and Ubuntu.

The agent monitors web requests handled by Apache and PHP-FPM. It does not run in the PHP command line interface, so scripts started from the command line, such as artisan commands, queue workers, and cron jobs, are not monitored.

Package manager

  • Composer

Supported by SCA analysis.

Content management system

  • WordPress 6