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.
Unfortunately, at this point in time, phpstan pro is not fully compatible with ddev. The following guide thus just describes a workaround, restricted to be used with one ddev project at a time.
First, make sure you have composer required phpstan in your project.
Add a file .ddev/docker-compose.phpstan.yaml with the following content:
Restart ddev. Start phpstan with a command like:
You should see something like:
Now simply point your browser to http://127.0.0.1:11111 - after login/registration, you will be redirected to phpstan pro's dashboard.
Last updated