EnvDevPHPBase is a PHP environment container
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
scripts
test
.travis.yml
CHANGELOG.md
CODE_OF_CONDUCT.md
Dockerfile
LICENSE
README.md
_config.yml

README.md

EnvDevPHPBase

Build Status

EnvDevPHPBase is a PHP container designed to be used like a base for a utilisation into the EnvDev project. The utlisation outside this project is naturally possible.

Images

Six PHP versions are available through image's tags:

  • 7.0 FPM
  • 7.1 FPM
  • 7.2 FPM
  • 7.0 CLI
  • 7.1 CLI
  • 7.2 CLI

The latest version of EnvDevPHPBase (latest) (vfac/envdevphpbase) is a image with the last version of PHP FPM available.

Each versions exist in Alpine version to limit the image size.

PHP Customization

To customize the PHP image you can share your php.ini file into /usr/local/etc/php/php.ini into your Dockerfile or docker-compose file. A maximum of PHP extension have been added to be used in a maximum of projects.

Usage

docker run -d --name php -p 9000:9000 -v $PWD:/var/www/html vfac/envdevphpbase:7.2-fpm

Complements

Maildev configuration

The maildev configuration has been added into this image to be used into the EnvDev project. There are no consequence if you use this image for an another utilisation.

X-Debug

X-Debug is installed with standard options. Two options have been customized: - remote_enable=on - remote_autostart=off

Composer

Composer is installed to be used with your configuration of PHP.