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.
| 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 |
- XDebug: A PHP extension for debugging and profiling PHP applications.
- PCov: A PHP extension for code coverage analysis during testing.
| 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 |
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 |
docker run -e XDEBUG_PORT=9042 materya/phpdev-8.1Alternatively 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.inibecause some overridings are applied by the entrypoint to the default configuration file if no custom one is provided.
docker run -v /path/to/my/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini.custom materya/phpdev-8.1