Skip to content

Adding common PHP extensions to some of the official PHP Docker images.

License

Notifications You must be signed in to change notification settings

gialang/docker-php

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker PHP Images logo

Docker PHP images

Build Status Source link Authors link Docker Pulls License


Docker images built on top of the official PHP images with the addition of some common and useful extensions, installed with mlocati/docker-php-extension-installer. You can find these images on the Docker Hub (and if you're reading this file, you're probably already there).

An automated build is set up, so they should be always up-to-date with the Dockerfiles in the GitHub repository. Also, every time an official PHP image is updated, a rebuild is triggered, so that you will always find the latest security patches installed in these images.

For development environments, you might want to choose an image with XDebug installed, instead.

Available tags and Dockerfile links

As you might have guessed, all tags are built on top of the corresponding tag of the official image. Not all tags are supported in order to easen manteinance.

Installed extensions

The following modules and extensions have been enabled, in addition to those you can already find in the official PHP image:

  • bcmath
  • bz2
  • calendar
  • exif
  • iconv
  • intl
  • gd
  • ldap
  • mbstring
  • mcrypt (only PHP ≤ 7.1)
  • memcached
  • mysql (only PHP 5.x)
  • mysqli
  • pdo_mysql
  • pdo_pgsql
  • pgsql
  • redis
  • soap
  • xsl
  • Zend OPcache
  • zip
  • sockets

You will probably not need all this stuff. Even if having some extra extensions loaded ain't a big issue in most cases, you will very likely want to checkout this repository, remove unwanted extensions from the Dockerfile, and build your own image — for sometimes removing is easier than adding. 😉

Composer

Composer is installed globally in all images. Please, refer to their documentation for usage hints.
Prestissimo (composer plugin) is installed globally in all images. Plugin that downloads packages in parallel to speed up the installation process of Composer packages.

Contributing

If you find an issue, or have a special wish not yet fulfilled, please open an issue on GitHub providing as many details as you can (the more you are specific about your problem, the easier it is for us to fix it).

Pull requests are welcome, too! 😁 Please, run make build and make test before attempting a pull request. Also, it would be nice if you could stick to the best practices for writing Dockerfiles.


License

Docker PHP Images is released under the MIT license.

About

Adding common PHP extensions to some of the official PHP Docker images.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 91.3%
  • Makefile 8.7%