Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

PHP Dev

License Maintenance

A lightweight base image for PHP projects development, specifically aiming at providing the right environment for devcontainers and/or CI test runners or builders.
It can also serve as a solid base for more complex images.

Available versions

Version Description
7.1 PHP 7.1
7.2 PHP 7.2
7.3 PHP 7.3
7.4 PHP 7.4
8.0 PHP 8.0
8.1 PHP 8.1
8.2 PHP 8.2
latest PHP 8.2

Preinstalled Extensions

  • XDebug: A PHP extension for debugging and profiling PHP applications.
  • PCov: A PHP extension for code coverage analysis during testing.

Exposed Env variables

Variable Name Value Detail
CONTAINER_USER_NAME phpdev The user running the container
CONTAINER_USER_UID 1000 The user id of the user running the container
CONTAINER_USER_GID 1000 The group id of the user running the container

Configuration

XDebug

With Env variables

You can provide env variables to customize some settings in the default configuration already applied.

Variable Name Value Type Default Value
XDEBUG_IDE String VSCODE
XDEBUG_PORT Port number 9003
Example
docker run -e XDEBUG_PORT=9042 materya/phpdev-8.1

Full custom configuration

Alternatively you can provide your own configuration file replacement by mounting it into the container when running it, at the location /usr/local/etc/php/conf.d/xdebug.ini.custom

NOTE: You cannot mount directly onto /usr/local/etc/php/conf.d/xdebug.ini because some overridings are applied by the entrypoint to the default configuration file if no custom one is provided.

Example
docker run -v /path/to/my/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini.custom materya/phpdev-8.1

License

GPL-3.0