Add phpstan, rector, php-cs-fixer and linting scripts.
Why?
We want to provide sulu rector with the skeleton which requires a good configured phpstan configuration. Which we should already ship with the skeleton. In this case the other tooling and linting task which we already use are added the the composer.json and should improve the quality of all other sulu projects as we know provide composer lint script which will do validation of a lot of files for every sulu project.
What's in this PR?
Add phpstan, rector, php-cs-fixer and linting scripts.
Why?
We want to provide sulu rector with the skeleton which requires a good configured phpstan configuration. Which we should already ship with the skeleton. In this case the other tooling and linting task which we already use are added the the
composer.json
and should improve the quality of all other sulu projects as we know providecomposer lint
script which will do validation of a lot of files for every sulu project.