PHP images with pre-build extensions.
6.8K
This respository provide PHP images with pre-build extensions.
You can build you own image base on these images for time-saving.
amd64, arm64v8, arm32v7bcmath, event, exif, gd, gnupg, grpc, imagick, memcached, mongodb, mysqli, opcache, pcntl, pdo_mysql, pdo_pgsql, pgsql, protobuf, redis, sockets, ssh2, swoole, xdebug, zip, zookeeper, zstdJust use /usr/local/etc/php/php.ini to configure the extension.
echo 'zend_extension=xdebug' >> /usr/local/etc/php/php.ini
Or add an independent ini file to /usr/local/etc/php/conf.d/ directory.
echo 'zend_extension=xdebug' > /usr/local/etc/php/conf.d/xdebug.ini
Don't forget to reload the configuration if you are using php-fpm.
Since you are using Docker, you can also prepare a directory contains configure files and then mount the directory.
docker run -v /path/to/config/directory:/usr/local/etc/php ...
In modern development, you don't need to use those outdated extensions in most cases.
Some extensions are no longer maintained, and some don't even support PHP 8.
There are alternative libraries written in pure PHP you can choose. For example, use the php-amqplib library instead of php-amqp.
If you really want a specific extension which is not installed in the image, you can just install it using mlocati/docker-php-extension-installer by your self.
The MIT License
Content type
Image
Digest
sha256:8ea63ef58…
Size
95.1 MB
Last updated
over 3 years ago
docker pull chrishyze/extended-php:8.0-fpm-alpine