mlocati/docker-php-extension-installer

Easily install PHP extensions in Docker containers

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 17 minutes ago
Added to GitGenius on September 13th, 2026
Created on April 11th, 2018
Open Issues & Pull Requests: 12 (+0)
GitHub issues: Enabled
Number of forks: 436
Total Stargazers: 4,970 (+0)
Total Subscribers: 49 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 0.7 hours
Mean response time: 4.3 days
90th percentile: 3.8 days
Tracked items: 107

Most active contributors

Sign in to see contributor activity.

How this project is maintained

About 18% of issues opened in the past year have never received a reply. 90% of issues opened in the past year have since been closed. Three people close 79% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 7
New in 7 days: 0
Closed in 7 days: 1
Avg open age: 340 days
Stale 30+ days: 5
Stale 90+ days: 4

Recent activity

Opened in 7 days: 0
Closed in 7 days: 1
Comments in 7 days: 2
Events in 7 days: 7

Top labels

  • bug (81)
  • enhancement (40)
  • waiting for external maintainer (2)

Most active issues this week

Detailed Description

docker-php-extension-installer is a shell script that automates PHP extension installation in official PHP Docker images.

The tool solves the problem of manually managing dependencies when installing PHP extensions in Docker containers. It handles the installation of required system packages via APT or APK, then removes unnecessary packages afterward to keep the final image size small. The script supports Debian-based images from Debian 8 onward and Alpine-based images from Alpine 3.9 onward, covering PHP versions from 5.5 to current releases.

Developers should use this tool when building Docker images that require specific PHP extensions. It suits any project that needs a streamlined, reproducible way to add extensions without manually tracking system dependencies. The script offers multiple integration methods: downloading on the fly with ADD or curl, copying from a pre-built Docker image, or using the script directly from a published image. It supports installing specific extension versions, including compatible versions via caret syntax and pre-release versions from PECL with state suffixes like alpha, beta, or rc. Extensions can also be installed from source code when a package.xml or package2.xml file is available.

The project maintains active engagement with Docker image updates and dependency management. It regularly updates to support new PHP versions and extension releases. The tool receives consistent refinement in how it handles edge cases across different base images and PHP versions. Community contributions are incorporated for expanding extension support and improving installation reliability across the range of supported platforms.