A Docker image designed for PHP developers that care about code quality.
Available on Docker Hub at devdrops/php-toolbox.
Each PHP version, starting from 7.4, have at least 2 tags: one version without Xdebug, and another with Xdebug.
- PHP 7.4:
7.4,7.4-xdebug
- PHP 8.0:
8.0,8.0-xdebug
- PHP 8.1:
8.1,8.1-xdebug
- PHP 8.2:
8.2,8.2-xdebug
- PHP 8.3:
latest,8.3,8.3-xdebug
The following tools are available:
docker pull devdrops/php-toolboxAll tools can be accessed by executing:
docker run -ti --rm -v $(pwd):/code -w /code devdrops/php-toolbox:latest <CHOOSEN_TOOL>Where <CHOOSEN_TOOL> is the binary you're looking for 😉
Clone this repository. Then, using a terminal window, go to it's root directory. Each version folder have it's own
Makefile with the following commands (you can run make help to see a brief explanation of each command):
build Build the official tag.
debug Build only the image with Xdebug.
develop Build '*-dev' tag, including Xdebug.
hadolint Lint ./Dockerfile with Hadolint
help Print information of each Make task.
latest Build two images: 1. official tag, 2. official tag + Xdebug.
push Pushes to Docker Hub two images: 1. official tag, 2. official tag + Xdebug.
release Build and deploy official tags.
shellcheck Run shellcheck to scan sh files at ./helpers.
