PHP docker image (minidocks/php)
PHP is a popular general-purpose scripting language that is especially suited to web development. Fast, flexible and pragmatic, PHP powers everything from your blog to the most popular websites in the world.
These images solve problem with iconv library.
PHP_EXT_*=0/1
- enable/disable php extension (e.g.PHP_EXT_XDEBUG=1
)PHP_*=value
- set PHP configuration inphp.ini
(e.g.PHP_MEMORY__LIMIT=0
)FPM_*=value
- set PHP FPM configuration inphp-fpm.conf
(e.g.FPM_ERROR_LOG=/dev/stderr.pipe
)FPM_WWW_*=value
- set PHP FPM configuration inphp-fpm.d/www.conf
(e.g.FPM_WWW_ACCESS__LOG=/dev/stdout.pipe
)NEWRELIC_*=value
- set New Relic configuration innewrelic.ini
- Composer: Dependency Manager for PHP
composer1
andcomposer2
(aliascomposer
). - PsySH: A runtime developer console, interactive debugger and REPL for PHP.
module | 8.x | 8.4 | tag |
---|---|---|---|
apcu | ✓ | ✓ | base |
bcmath | ✓ | ✓ | latest |
blackfire | ✓ | ✓ | latest |
calendar | ✓ | ✓ | latest |
cgi | ✓ | ✓ | latest |
ctype | ✓ | ✓ | base |
curl | ✓ | ✓ | base |
dom | ✓ | ✓ | latest |
exif | ✓ | ✓ | latest |
excimer | ✓ | ✓ | latest |
ffi | ✓ | ✓ | latest |
fileinfo | ✓ | ✓ | latest |
fpm | ✓ | ✓ | latest |
ftp | ✓ | ✓ | latest |
gd | ✓ | ✓ | latest |
gettext | ✓ | ✓ | latest |
gmp | ✓ | ✓ | latest |
iconv | ✓ | ✓ | base |
imap | ✓ | ✓ | base |
intl | ✓ | ✓ | intl |
json | ✓ | ✓ | base |
ldap | ✓ | ✓ | latest |
mbstring | ✓ | ✓ | base |
memcached | ✓ | ✓ | latest |
mongodb | ✓ | ✓ | latest |
mysqli | ✓ | ✓ | latest |
mysqlnd | ✓ | ✓ | latest |
newrelic (amd64) | ✓ | ✓ | latest |
opcache | ✓ | ✓ | latest |
opentelemetry | ✓ | ✓ | latest |
openssl | ✓ | ✓ | base |
pcntl | ✓ | ✓ | base |
pcov | ✓ | ✓ | base |
pdo_mysql | ✓ | ✓ | latest |
pdo_pgsq | ✓ | ✓ | latest |
pdo_sqlite | ✓ | ✓ | latest |
pgsql | ✓ | ✓ | latest |
phar | ✓ | ✓ | base |
posix | ✓ | ✓ | base |
protobuf | ✓ | ✓ | latest |
redis | ✓ | ✓ | latest |
session | ✓ | ✓ | latest |
simplexml | ✓ | ✓ | latest |
soap | ✓ | ✓ | latest |
sockets | ✓ | ✓ | latest |
sodium | ✓ | ✓ | latest |
sqlite3 | ✓ | ✓ | latest |
tokenizer | ✓ | ✓ | base |
xdebug | ✓ | ✓ | latest |
xml | ✓ | ✓ | latest |
xmlreader | ✓ | ✓ | latest |
xmlwriter | ✓ | ✓ | latest |
xsl | ✓ | ✓ | latest |
zip | ✓ | ✓ | latest |
Run interactive REPL:
docker run --rm -it -v `pwd`:`pwd` -w `pwd` minidocks/php
Tag | Size |
---|---|
latest, 8.4 | |
8.4-base | |
8.4 | |
8.4-nginx | |
8.4-intl | |
8.3-base | |
8.3 | |
8.3-nginx | |
8.3-intl | |
8.2-base | |
8.2 | |
8.2-nginx | |
8.2-intl | |
8.1-base | |
8.1 | |
8.1-nginx | |
8.1-intl | |
8.0-base |