Skip to content

Instructions to install common PHP extensions in standard Docker images (latest alpine and debian)

License

Notifications You must be signed in to change notification settings

fox91/docker-php-extensions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

fox91/php-extensions

Build Status

Branch Initial Release Active Support Until Security Support Until
8.1 25 Nov 2021 25 Nov 2023 31 Dec 2025
8.2 08 Dec 2022 31 Dec 2024 31 Dec 2026
8.3 23 Nov 2023 31 Dec 2025 31 Dec 2027
8.4 21 Nov 2024 31 Dec 2026 31 Dec 2028
8.5 20 Nov 2025 31 Dec 2027 31 Dec 2029

Supported PHP extensions

Extension PHP 8.1 trixie PHP 8.1 alpine3.22 PHP 8.2 trixie PHP 8.2 alpine3.22 PHP 8.3 trixie PHP 8.3 alpine3.22 PHP 8.4 trixie PHP 8.4 alpine3.22 PHP 8.5 trixie PHP 8.5 alpine3.22
amqp PECL (2.1.4) 🐳 (2.1.4) 🐳 (2.1.4) 🐳 (2.1.4) 🐳 (2.1.4) 🐳 (2.1.4) 🐳 (2.1.4) 🐳 (2.1.4) 🐳 (2.1.4) 🐳 (2.1.4) 🐳
apcu PECL (5.1.27) 🐳 (5.1.27) 🐳 (5.1.27) 🐳 (5.1.27) 🐳 (5.1.27) 🐳 (5.1.27) 🐳 (5.1.27) 🐳 (5.1.27) 🐳 (5.1.27) 🐳 (5.1.27) 🐳
ast PECL (1.1.3) 🐳 (1.1.3) 🐳 (1.1.3) 🐳 (1.1.3) 🐳 (1.1.3) 🐳 (1.1.3) 🐳 (1.1.3) 🐳 (1.1.3) 🐳 (1.1.3) 🐳 (1.1.3) 🐳
bcmath 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳
bz2 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳
dbase PECL (7.1.1) 🐳 (7.1.1) 🐳 (7.1.1) 🐳 (7.1.1) 🐳 (7.1.1) 🐳 (7.1.1) 🐳 (7.1.1) 🐳 (7.1.1) 🐳 (7.1.1) 🐳 (7.1.1) 🐳
ds PECL (1.6.0) 🐳 (1.6.0) 🐳 (1.6.0) 🐳 (1.6.0) 🐳 (1.6.0) 🐳 (1.6.0) 🐳 (1.6.0) 🐳 (1.6.0) 🐳 (1.6.0) 🐳 (1.6.0) 🐳
fann PECL (1.2.0) 🐳 (1.2.0) 🐳 (1.2.0) 🐳 (1.2.0) 🐳 (1.2.0) 🐳 (1.2.0) 🐳 (1.2.0) 🐳 (1.2.0) 🐳 (1.2.0) 🐳 (1.2.0) 🐳
gd 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳
gearman PECL (2.1.4) 🐳 (2.1.4) 🐳 (2.1.4) 🐳 (2.1.4) 🐳 (2.1.4) 🐳 (2.1.4) 🐳 (2.1.4) 🐳 (2.1.4) 🐳 βœ— βœ—
geospatial PECL (0.3.2) 🐳 (0.3.2) 🐳 (0.3.2) 🐳 (0.3.2) 🐳 (0.3.2) 🐳 (0.3.2) 🐳 (0.3.2) 🐳 (0.3.2) 🐳 (0.3.2) 🐳 (0.3.2) 🐳
gmp 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳
grpc PECL (1.76.0) 🐳 (1.76.0) 🐳 (1.76.0) 🐳 (1.76.0) 🐳 (1.76.0) 🐳 (1.76.0) 🐳 (1.76.0) 🐳 (1.76.0) 🐳 (1.76.0) 🐳 (1.76.0) 🐳
igbinary PECL (3.2.16) 🐳 (3.2.16) 🐳 (3.2.16) 🐳 (3.2.16) 🐳 (3.2.16) 🐳 (3.2.16) 🐳 (3.2.16) 🐳 (3.2.16) 🐳 (3.2.16) 🐳 (3.2.16) 🐳
imagick PECL (3.8.0) 🐳 (3.8.0) 🐳 (3.8.0) 🐳 (3.8.0) 🐳 (3.8.0) 🐳 (3.8.0) 🐳 (3.8.0) 🐳 (3.8.0) 🐳 (3.8.0) 🐳 (3.8.0) 🐳
imap PECL (1.0.3) 🐳 (1.0.3) 🐳 (1.0.3) 🐳 (1.0.3) 🐳 (1.0.3) 🐳 (1.0.3) 🐳 (1.0.3) 🐳 (1.0.3) 🐳 (1.0.3) 🐳 (1.0.3) 🐳
imap βœ— 🐳 βœ— 🐳 βœ— 🐳 βœ— βœ— βœ— βœ—
intl 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳
ldap 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳
mailparse PECL (3.1.9) 🐳 (3.1.9) 🐳 (3.1.9) 🐳 (3.1.9) 🐳 (3.1.9) 🐳 (3.1.9) 🐳 (3.1.9) 🐳 (3.1.9) 🐳 (3.1.9) 🐳 (3.1.9) 🐳
mcrypt PECL (1.0.7) 🐳 (1.0.7) 🐳 (1.0.7) 🐳 (1.0.7) 🐳 (1.0.7) 🐳 (1.0.7) 🐳 βœ— βœ— βœ— βœ—
memcache PECL (8.2) 🐳 (8.2) 🐳 (8.2) 🐳 (8.2) 🐳 (8.2) 🐳 (8.2) 🐳 (8.2) 🐳 (8.2) 🐳 (8.2) 🐳 (8.2) 🐳
memcached PECL (3.4.0) 🐳 (3.4.0) 🐳 (3.4.0) 🐳 (3.4.0) 🐳 (3.4.0) 🐳 (3.4.0) 🐳 (3.4.0) 🐳 (3.4.0) 🐳 (3.4.0) 🐳 (3.4.0) 🐳
mongodb PECL (2.1.4) 🐳 (2.1.4) 🐳 (2.1.4) 🐳 (2.1.4) 🐳 (2.1.4) 🐳 (2.1.4) 🐳 (2.1.4) 🐳 (2.1.4) 🐳 (2.1.4) 🐳 (2.1.4) 🐳
mysqli 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳
newrelic 🐳 🐳 🐳 🐳 🐳 🐳 βœ— βœ— βœ— βœ—
opcache 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳 βœ—ΒΉ βœ—ΒΉ
pcntl 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳
pdo_mysql 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳
pdo_pgsql 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳
pgsql 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳
phpiredis (1.0.1) 🐳 (1.1.x) 🐳 (1.0.1) 🐳 (1.1.x) 🐳 (1.0.1) 🐳 (1.1.x) 🐳 (1.0.1) 🐳 (1.1.x) 🐳 🐳 🐳
protobuf PECL (4.33.1) 🐳 (4.33.1) 🐳 (4.33.1) 🐳 (4.33.1) 🐳 (4.33.1) 🐳 (4.33.1) 🐳 (4.33.1) 🐳 (4.33.1) 🐳 (4.33.1) 🐳 (4.33.1) 🐳
redis PECL (6.3.0) 🐳 (6.3.0) 🐳 (6.3.0) 🐳 (6.3.0) 🐳 (6.3.0) 🐳 (6.3.0) 🐳 (6.3.0) 🐳 (6.3.0) 🐳 (6.3.0) 🐳 (6.3.0) 🐳
snmp 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳
soap 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳
sockets 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳
timezonedb PECL (2025.2.2) 🐳 (2025.2.2) 🐳 (2025.2.2) 🐳 (2025.2.2) 🐳 (2025.2.2) 🐳 (2025.2.2) 🐳 (2025.2.2) 🐳 (2025.2.2) 🐳 (2025.2.2) 🐳 (2025.2.2) 🐳
uuid PECL (1.3.0) 🐳 (1.3.0) 🐳 (1.3.0) 🐳 (1.3.0) 🐳 (1.3.0) 🐳 (1.3.0) 🐳 (1.3.0) 🐳 (1.3.0) 🐳 (1.3.0) 🐳 (1.3.0) 🐳
var_representation PECL (0.1.5) 🐳 (0.1.5) 🐳 (0.1.5) 🐳 (0.1.5) 🐳 (0.1.5) 🐳 (0.1.5) 🐳 (0.1.5) 🐳 (0.1.5) 🐳 (0.1.5) 🐳 (0.1.5) 🐳
xdebug PECL (3.4.7) 🐳 (3.4.7) 🐳 (3.4.7) 🐳 (3.4.7) 🐳 (3.4.7) 🐳 (3.4.7) 🐳 (3.4.7) 🐳 (3.4.7) 🐳 (3.5.0alpha3) 🐳 (3.5.0alpha3) 🐳
xhprof PECL (2.3.10) 🐳 (2.3.10) 🐳 (2.3.10) 🐳 (2.3.10) 🐳 (2.3.10) 🐳 (2.3.10) 🐳 (2.3.10) 🐳 (2.3.10) 🐳 (2.3.10) 🐳 (2.3.10) 🐳
yaml PECL (2.3.0) 🐳 (2.3.0) 🐳 (2.3.0) 🐳 (2.3.0) 🐳 (2.3.0) 🐳 (2.3.0) 🐳 (2.3.0) 🐳 (2.3.0) 🐳 (2.3.0) 🐳 (2.3.0) 🐳
zip PECL (1.22.7) 🐳 (1.22.7) 🐳 (1.22.7) 🐳 (1.22.7) 🐳 (1.22.7) 🐳 (1.22.7) 🐳 (1.22.7) 🐳 (1.22.7) 🐳 (1.22.7) 🐳 (1.22.7) 🐳
zip 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳 🐳
zstd PECL (0.15.2) 🐳 (0.15.2) 🐳 (0.15.2) 🐳 (0.15.2) 🐳 (0.15.2) 🐳 (0.15.2) 🐳 (0.15.2) 🐳 (0.15.2) 🐳 (0.15.2) 🐳 (0.15.2) 🐳

Notes

ΒΉ opcache: Starting with PHP 8.5, opcache is built directly into the PHP binary and cannot be installed as a separate extension. It is already available in all PHP 8.5 base images without requiring installation.

About

Instructions to install common PHP extensions in standard Docker images (latest alpine and debian)

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •