phpstan pro with ddev
For phpstan pro see https://phpstan.org/blog/introducing-phpstan-pro. It's a great tool, it's monthly plan for developers should be worth it for most of us.
# .ddev/docker-compose.phpstan.yaml
services:
web:
volumes:
- ~/phpstan-pro:/tmp/phpstan-fixer
environment:
- PHPSTAN_PRO_WEB_PORT=11111
ports:
- 127.0.0.1:11111:11111ddev exec vendor/bin/phpstan analyse --proRunning in Docker? Don't forget to do these steps:
1) Publish this port when running Docker:
-p 127.0.0.1:11111:11111
2) Map the temp directory to a persistent volume
so that you don't have to log in every time:
-v ~/.phpstan-pro:/tmp/phpstan-fixer
Open your web browser at: http://127.0.0.1:11111
Press [Ctrl-C] to quit.Last updated