Skip to content

final-gene/docker-hub-php-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP CLI

Docker build and publish

This is an image to run the PHP CLI.

How to use this image

Run the php-cli image:

docker run \
    --rm \
    --tty \
    --interactive \
    --volume "$(pwd)":/app \
    finalgene/php-cli

Run the php-cli image with XDEBUG enabled:

docker run \
    --rm \
    --tty \
    --interactive \
    --env XDEBUG_ENABLE=1
    --volume "$(pwd)":/app \
    finalgene/php-cli

For further information take a look at the official PHP documentation.

Supported PHP Extensions

Extension / PHP Version 5.3 5.4 5.5 5.6 7.0 7.1 7.2 7.3 8.0
bcmath x x x x x x x x
calendar x x x x x x x x
exif x x x x x x x x
gd x x x x x x x x
gettext x x x x x x x x
imap x x x x x x x x
intl x x x x x x x x
ldap x x x x x x x x
mcrypt x x x x x
mysqli x x x x x x x x x
opcache x x x x x x x
pcntl x x x x x x x x
pdo_mysql x x x x x x x x x
pdo_sqlite x
pdo_pgsql x x x x x x x x
redis x x x x x x x x
shmop x x x x x x x x
soap x x x x x x x x
sockets x x x x x x x x
sysvmsg x x x x x x x x
sysvsem x x x x x x x x
sysvshm x x x x x x x x
wddx x x x x x x x x
xdebug [1] x x x x x x x x x
xsl x x x x x x x x
zip x x x x x x x x

[1] XDEBUG is installed but not activated by default. When using XDEBUG set the environment XDEBUG_ENABLE=1 or add -d zend_extension=xdebug.so as option to you command.

Quick reference