Search code examples
phpsymfonyphpcodesniffer

Is there any Symfony CodeSniffer ruleset


I've been trying to use PHP_CodeSniffer on Symfony projects but it usually throws warnings that are not usually follow by the Symfony community (Like commenting parameter tags or not grouping parameters and returns in function docs)

I was wondering if there is any official or unofficial but well-maintained ruleset for Symfony

I found this one: https://github.com/djoos/Symfony2-coding-standard Looks good but it hasn't been updated for a while now


Solution

  • You can use friendsofphp/php-cs-fixer documentation is in http://cs.sensiolabs.org/