âĻ Key Features
+ðŠķ Lightweight
+Based on Alpine Linux with optimized image sizes ranging from 135-154MB uncompressed.
+ð Production Ready
+Optimized for both development and production environments with security best practices.
+ð§ 45+ Extensions
+Pre-installed with all essential PHP extensions including database drivers, image processing, and caching.
+ðŊ Multiple Variants
+Choose from base, CLI, FPM, FPM-Nginx, or FPM-Apache configurations.
+ð Multi-Architecture
+Native support for amd64 (x86_64) and arm64 (Raspberry Pi, AWS Graviton).
+ð ïļ Developer Tools
+CLI images include Composer, PHPUnit, PHP_CodeSniffer, and PHPMD.
+ðĶ Pre-installed PHP Extensions
+All images come with 45+ PHP extensions ready to use:
+ð§ Environment Variables Configuration
+Configure your container without modifying configuration files:
+ +PHP_CONTROLLER
+Description: Enable single-file controller pattern. All requests route to the specified PHP file.
+Default: Not set
+Use Case: Perfect for Symfony, Laravel, Slim frameworks
+docker run -e PHP_CONTROLLER=/index.php @@DOCKER_IMAGE@@
+ NGINX_ROOT
+Description: Set the web server document root
+Default: /var/www/html
+docker run -e NGINX_ROOT=/srv/public @@DOCKER_IMAGE@@
+ NGINX_SSL_CERT & NGINX_SSL_CERT_KEY
+Description: Enable HTTPS by providing paths to SSL certificate and key files
+Default: Not set (HTTP only)
+docker run -v /etc/ssl:/etc/ssl \
+ -e NGINX_SSL_CERT=/etc/ssl/my.cert \
+ -e NGINX_SSL_CERT_KEY=/etc/ssl/my.key \
+ @@DOCKER_IMAGE@@
+ PHP_FPM_SERVER
+Description: Configure the FastCGI server address for PHP-FPM
+Default: 127.0.0.1:9000
+docker run -e PHP_FPM_SERVER=127.0.0.1:9000 @@DOCKER_IMAGE@@
+ DISABLEMODULE_[name]
+Description: Disable specific PHP modules at runtime to optimize performance
+Default: All modules enabled
+docker run -e DISABLEMODULE_DOM=true -e DISABLEMODULE_XSL=true @@DOCKER_IMAGE@@
+ VERBOSE
+Description: Enable verbose logging for troubleshooting startup and configuration
+Default: Not set
+docker run -e VERBOSE=true @@DOCKER_IMAGE@@
+ ð Image Information
+| Property | +Value | +
|---|---|
| Docker Image | +@@DOCKER_IMAGE@@ | +
| PHP Version | +@@PHP_VERSION@@ | +
| PHP Variant | +@@PHP_VARIANT@@ | +
| Build Date | +@@BUILD_DATE@@ | +
| Base OS | +Alpine Linux | +
| Supported Architectures | +amd64, arm64 | +
| XDebug Port | +9001 | +
ðŊ Quick Start Examples
+ +Development Environment
+ðđ Using docker run
+docker run -d \
+ -v $PWD:/var/www/html \
+ -p 80:80 \
+ @@DOCKER_IMAGE@@
+ ðđ Using Dockerfile
+FROM @@DOCKER_IMAGE@@
+
+COPY . /var/www/html
+
+EXPOSE 80
+ With Framework (Laravel, Symfony, PHP Rest Reference)
+ðđ Using docker run
+docker run -d \
+ -e PHP_CONTROLLER="/index.php" \
+ -e NGINX_ROOT="/srv/public" \
+ -v $PWD:/svr \
+ -w /svr \
+ -p 80:80 \
+ @@DOCKER_IMAGE@@
+ ðđ Using Dockerfile
+FROM @@DOCKER_IMAGE@@
+
+ENV PHP_CONTROLLER="/index.php"
+ENV NGINX_ROOT="/svr/public"
+WORKDIR /svr
+
+COPY . /svr
+
+EXPOSE 80
+ Production with SSL
+ðđ Using docker run
+docker run -d \
+ -e NGINX_SSL_CERT=/etc/ssl/cert.pem \
+ -e NGINX_SSL_CERT_KEY=/etc/ssl/key.pem \
+ -v /path/to/certs:/etc/ssl \
+ -v $PWD:/var/www/html \
+ -p 443:443 \
+ @@DOCKER_IMAGE@@
+ ðđ Using Dockerfile
+FROM @@DOCKER_IMAGE@@
+
+ENV NGINX_SSL_CERT=/etc/ssl/cert.pem
+ENV NGINX_SSL_CERT_KEY=/etc/ssl/key.pem
+
+COPY certs/ /etc/ssl/
+COPY . /var/www/html
+
+EXPOSE 443
+ ð Explore More
+View detailed PHP configuration and loaded extensions
+ View PHP Info + Full Documentation + GitHub Repository +