mlocati/docker-php-extension-installer
Easily install PHP extensions in Docker containers observed · 2026-08-28
Health v2 · maintenance only
92/100
- Activity 99
- Release rhythm 77
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 2
- age_days: 3066
- days_rel: 77
- days_push: 7
- n_releases_24m: 124
Adoption not part of the score
4962 stars · 434 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A shell script that simplifies installing PHP extensions inside official PHP Docker images. It automatically resolves and installs required APT/APK packages and cleans them up afterward to keep images small.
Use cases
- install PHP extensions in a Dockerfile
- add gd and xdebug to a php docker image
- build a slim PHP docker image with extensions
- install PHP extensions on Alpine-based images
- avoid manually installing PHP extension dependencies in Docker
When to choose
- You use official PHP Docker images (Debian or Alpine based) and need extensions
- You want minimal image size with automatic dependency cleanup
- You want a one-line solution in your Dockerfile
When to avoid
- You don't use Docker for your PHP setup
- You need extensions on non-official PHP images or non-Linux platforms
- You require fully pinned, auditable builds without downloading scripts at build time
Facets
cli-tool · maturity active
developer-tools build-tool deployment developer-tools cli php docker-images php-extensions dockerfile shell-script devops containers docker linux
1 source
- readme: https://github.com/mlocati/docker-php-extension-installer · fetched 2026-08-28 · fb51e96640fb
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| mlocati/docker-php-extension-installer | main | 92 |
For agents
markdown · JSON · MCP: product_card(name="mlocati/docker-php-extension-installer")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem