back to home

mlocati / docker-php-extension-installer

Easily install PHP extensions in Docker containers

4,874 stars
431 forks
10 issues
ShellPHPJavaScript

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing mlocati/docker-php-extension-installer in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Source files are only loaded when you start an analysis to optimize performance.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind.in/repo/mlocati/docker-php-extension-installer)
Preview:Analyzed by RepoMind

Repository Overview (README excerpt)

Crawler view

Easy installation of PHP extensions in official PHP Docker images This repository contains a script that can be used to easily install a PHP extension inside the official PHP Docker images. The script will install all the required APT/APK packages; at the end of the script execution, the no-more needed packages will be removed so that the image will be much smaller. Supported docker images are: • Debian-based docker images: since jessie (Debian 8) (minimum PHP version: 5.5) • Alpine-based docker images: since Alpine 3.9 (minimum PHP version: 7.1) See also the notes in the Special requirements section. Usage You have many ways to use this script within your s. Here's a list of sample s that install the GD and xdebug PHP extensions: Downloading the script on the fly with Downloading the script on the fly with Direct execution with Copying the script from a Docker image • using GitHub Container Registry • using Docker Hub **Warning**: by using this method you may use an outdated version of the Docker image. You may want to run or in order to use an up-to-date version. Using the script of a Docker image • using GitHub Container Registry • using Docker Hub **Warning**: by using this method you may use an outdated version of the Docker image image. You may want to run or in order to use an up-to-date version. Installing specific versions of an extension Simply append to the module name. For example: The script also supports resolving *compatible* versions by prefixing the version with a caret ( ). For example: Please remark that with the syntax above you'll get the very latest compatible version, which may be unstable. In order to install the most recent *stable* version, you can append : (valid suffixes are: , , , , and ) Pre-release versions extensions available on can be setup by suffixing the extension's name with its state i.e. , , , , or . For example: TIP: When the latest version available on is not stable, and you want to keep the last stable version, force it by suffixing the extension's name with the state. For example: Installing an extension from its source code You can also install PHP extensions from source code (provided that it comes with a or a file). Accepted formats are: • A short version for repositories hosted on GitHub. For example, for the php-memcached-dev/php-memcached GitHub repository, you can simply write: • An URL providing an archive containing the source code. Examples: • The absolute path of a local directory. Examples: install-php-extensions zip-stable install-php-extensions php/pecl-database-oci8@7aa1061 sh Install the latest version install-php-extensions @composer Install the latest 1.x version install-php-extensions @composer-1 Install a specific version install-php-extensions @composer-2.0.2 sh install-php-extensions @fix_letsencrypt ` Supported PHP extensions | Extension | PHP 8.5 | PHP 8.4 | PHP 8.3 | PHP 8.2 | PHP 8.1 | PHP 8.0 | PHP 7.4 | PHP 7.3 | PHP 7.2 | PHP 7.1 | PHP 7.0 | PHP 5.6 | PHP 5.5 | |:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:| | amqp | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | apcu | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | apcu_bc | | | | | | | ✓ | ✓ | ✓ | ✓ | ✓ | | | | ast | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | | | bcmath | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | bitset | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | blackfire | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | brotli | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | | | bz2 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | calendar | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | cassandra* | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | | | | | cmark | | | | | | | ✓ | ✓ | ✓ | ✓ | ✓ | | | | csv | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | | | | | | dba | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | ddtrace* | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | | decimal | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | | | ds | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | | | ecma_intl* | | | ✓ | ✓ | | | | | | | | | | | enchant | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | ev | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | event | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | excimer | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | | | | exif | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | ffi | ✓ | ✓ | ✓ | &c…