This package is to be required on all PHPro's symfony based projects.
composer config --json extra.symfony.allow-contrib true composer config --json extra.symfony.endpoint '["https://api.github.com/repos/phpro/symfony-conventions/contents/index.json", "flex://defaults"]' composer require --dev phpro/symfony-conventionscomposer require --dev phpro/symfony-conventionsYou can copy the config files from the configs/ directory to the root of your project.
Note: If you already have these dependencies installed, you might have to run the flex recipe only:
composer recipes composer recipes:install THE/DEPENDENCY --force -v # grumphp.yaml parameters: run_security_advisories: trueYou might want to alter the default composer audit configuration in your local composer.json file.
For example if you don't want to fail CI on usage of abandoned packages:
{ "config": { "audit": { "abandoned": "report" } } }See official docs for more information.
composer require --dev phpstan/phpstan phpstan/extension-installer symplify/phpstan-rules# grumphp.yaml parameters: run_phpstan: truecomposer require --dev vimeo/psalm psalm/plugin-symfony # grumphp.yaml parameters: run_psalm: true