PHP images for Docker, configured with environment variables
General purpose images: cli, apache and fpm variants, slim and fat. The full list of images and the quick start are in the README.
8.6-v5-apache8.6-v5-fpm8.6-v5-cli8.6-v5-slim-apache8.6-v5-apache-node24docker run -p 80:80 -v "$PWD":/var/www/html \
-e PHP_EXTENSION_XDEBUG=1 -e PHP_INI_MEMORY_LIMIT=1g \
thecodingmachine/php:8.6-v5-apache
Choose and tune
ImagesEvery tag by variant and PHP version, one click to copy.
Tuning simulatorYour kind of application and your number of users give the variant to use and its settings.Interactive
Variantscli, apache (document root, ports, modules, connections) and fpm.
The fpm variantBuilt-in Apache or your own web server, constraints of PHP-FPM, migration from apache.
Behind a reverse proxyTrusted proxies, client IP and HTTPS, checked step by step.Interactive
Configure
PHP extensionsEnable or disable extensions with
PHP_EXTENSION_*.
PHP configurationAny php.ini parameter with PHP_INI_*.
ProcessesStartup commands, cron jobs and daemons.
Debugging, profiling, coverageFrom your needs to the tools to load and the configuration of your IDE and AI agent.Interactive
Advanced featuresPermissions, NodeJS, Composer, locales, SSH keys, Kubernetes.
Project
Coming with v6: a FrankenPHP variant, previewed in the tuning simulator.