The Docker image is ready to use:
docker pull ghcr.io/xelysion/docker-phpstan:latest
docker run --rm -v /path/to/app:/app ghcr.io/xelysion/docker-phpstan [some arguments for PHPStan]
Refer to PHPStan documentation https://phpstan.org/user-guide/docker#usage
You can update the phpstan.neon
file in order to use the extension:
includes:
- /composer/vendor/phpstan/phpstan-symfony/extension.neon
- /composer/vendor/phpstan/phpstan-doctrine/extension.neon
- /composer/vendor/phpstan/phpstan-phpunit/extension.neon
Refer to PHPStan documentation https://phpstan.org/user-guide/docker#install-phpstan-extensions
Based on PHPStan image 1-php8.3 with Symfony, Doctrine & PHPUnit extension.
Extension | Version |
---|---|
phpstan-symfony | 1.3.9 |
phpstan-doctrine | 1.3.65 |
phpstan-phpunit | 1.3.16 |