See Packages section
ghcr.io/phpimages/php-cli-xdebug
: PHP CLI image with xdebugghcr.io/phpimages/php-cli-allinclusive
: PHP CLI image with commonly used extensionsghcr.io/phpimages/phpstan
: PHP CLI image with phpstan
Tip
All images has composer installed
# Run composer install with any php version.
# Example 8.2 : ghcr.io/phpimages/php-cli-xdebug:8.2-alpine
docker run -v .:/opt -u $(id -u):$(id -g) ghcr.io/phpimages/php-cli-xdebug:8.2-alpine composer install
WORKDIR
is /opt
on each images use -v
to map your current dir with /opt
.
If you want to run php commands on IntelliJ for PHPUnit or Composer you will need a PHP interpreter.
On Settings > Languages and Framework > PHP define a new interpreter from Docker :