Skip to content

servivum/docker-php

Repository files navigation

PHP 7.3 PHP 7.2 PHP 7.1 PHP 7.0 PHP 5.6 Composer 1.8 License MIT Travis

PHP Docker Image

Dockerfiles for creating PHP images with Composer and common extensions. See Docker Hub for more details about the images.

Supported Tags

Image Variants

All variants has Composer preinstalled, using a production ready php.ini and have these preinstalled PHP extensions:

  • bcmath
  • bz2
  • calendar
  • iconv
  • intl
  • gd
  • mbstring
  • mcrypt (only PHP ≤ 7.1)
  • mysqli
  • pdo_mysql
  • soap
  • zip

servivum/php:<version>-cli-<distro>

This variant contains the PHP CLI tool with default mods. If you need a web server, this is probably not the image you are looking for. It is designed to be used both as a throw away container (mount your source code and start the container to start your app), as well as a base from which to build other images. Cron is also installed to use this container as a sidecar for scheduled tasks.

servivum/php:<version>-fpm-<distro>

This variant contains PHP-FPM, which is a FastCGI implementation for PHP.

Releases

No releases published

Packages

No packages published