Canonical source repository for the versioned PHP container images published as ghcr.io/justgetschwifty/php.
This repository contains the Docker build sources for the PHP image family published as ghcr.io/justgetschwifty/php.
It also documents what you get by default: tags, base images, and the general extension set.
There is a minimal runnable example in examples/minimal/ that starts Apache and PHP-FPM with conservative defaults and exposes HTTP on http://localhost:8080.
- Image:
ghcr.io/justgetschwifty/php - Supported tags:
5.6,7.1,7.3,8.1,8.2,8.3,8.4,8.5 - Alias tag:
latest->8.5 - Platforms:
linux/amd64,linux/arm64 - Runtime style:
php-fpm
These images provide a controlled PHP runtime set for a Docker stack across both legacy and current application workloads.
The practical goal is simple:
- keep old applications runnable when they still require historical PHP branches
- offer newer PHP variants for current workloads
- standardize extension availability across environments
- publish everything through one clean GHCR package with clear tags instead of many fragmented package names
The package uses one repository name and separates runtime variants through tags.
Current tags:
ghcr.io/justgetschwifty/php:5.6ghcr.io/justgetschwifty/php:7.1ghcr.io/justgetschwifty/php:7.3ghcr.io/justgetschwifty/php:8.1ghcr.io/justgetschwifty/php:8.2ghcr.io/justgetschwifty/php:8.3ghcr.io/justgetschwifty/php:8.4ghcr.io/justgetschwifty/php:8.5ghcr.io/justgetschwifty/php:latest
This approach keeps the registry tidy and makes it obvious that every runtime belongs to the same maintained image family.
| Tag | Base image |
|---|---|
5.6 |
php:5.6.40-fpm |
7.1 |
php:7.1-fpm-stretch |
7.3 |
php:7.3-fpm-stretch |
8.1 |
php:8.1-fpm-bullseye |
8.2 |
php:8.2-fpm-bookworm |
8.3 |
php:8.3-fpm-bookworm |
8.4 |
php:8.4-fpm-bookworm |
8.5 |
php:8.5-fpm-bookworm |
The image family focuses on a practical web stack with database, text, archive, graphics, mail, and integration support.
Commonly included capabilities across the family include:
gdpdopdo_mysqlmysqlibz2gettextintlmbstringsoapsocketsexifxslzipimagickmemcachedapcutimezonedbgnupg
Version-specific notes:
5.6also includesdom,imap,pspell, and legacymysql7.1and7.3includedom,imap,phar,pspell, andbcmath8.1,8.2, and8.3includeimap,bcmath, andopcache8.4includesbcmath,opcache, and enablesimapfrom PECL8.5currently includesbcmathbut does not currently addopcacheorimapin the image definition
These images are useful because they replace machine-specific PHP setups with a documented, portable runtime contract.
That is valuable when you want:
- reproducible PHP behavior across machines and environments
- a stable set of common extensions already built in
- a clean path for running both old and modern applications side by side
- a single GHCR package with predictable version tags
- multi-architecture support for x86_64 deployment targets and Apple Silicon development hosts
Use this package when you need:
- PHP-FPM containers behind Apache or another reverse proxy
- a maintained tag map for several PHP branches
- one place to discover which runtime contains which capabilities
- a documented source repository linked from the GHCR package page
docker pull ghcr.io/justgetschwifty/php:8.5
docker pull ghcr.io/justgetschwifty/php:latestThis repository is the canonical source for the Dockerfiles used to build the published PHP image family.
The images are feature-rich, but the goal is still to stay reasonably small (within the constraints of bundled extensions). The default example configuration is conservative and targets servers with limited RAM and CPU.