Skip to content

GrumPHP conventions for Symfony projects at PHPro

License

Notifications You must be signed in to change notification settings

filippeb/symfony-conventions

 
 

Repository files navigation

GrumPHP Symfony Convention

This package is to be required on all PHPro's symfony based projects.

Installation

With symfony/flex

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-conventions

Without symfony/flex

composer require --dev phpro/symfony-conventions

You can copy the config files from the configs/ directory to the root of your project.

Optional packages based on project requirements:

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

roave/security-advisories

composer require --dev roave/security-advisories:dev-master
# grumphp.yaml
parameters:
    run_security_advisories: true

phpstan/phpstan

composer require --dev phpstan/phpstan phpstan/extension-installer symplify/phpstan-rules
# grumphp.yaml
parameters:
    run_phpstan: true

vimeo/psalm

composer require --dev vimeo/psalm psalm/plugin-symfony 
# grumphp.yaml
parameters:
    run_psalm: true

About

GrumPHP conventions for Symfony projects at PHPro

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%