metasyntactical / symfony-coding-standard
A coding standard to check against the Symfony coding standards
v1.0.3
2015-07-06 11:46 UTC
This package is auto-updated.
Last update: 2024-11-12 06:09:19 UTC
README
A coding standard to check against the Symfony coding standards, copied from escapestudios/Symfony2-coding-standard which itself was copied from the -disappeared- opensky/Symfony2-coding-standard repository.
Composer integration has been additionally enabled.
Installation
Require PHP_CodeSniffer and this sniff in your project composer.json
:
{ "require-dev": { "squizlabs/php_codesniffer": "~2.3", "metasyntactical/symfony-coding-standard": "~1.0" } }
Afterwards call CodeSniffer with the standard:
$ vendor/bin/phpcs $FILENAME --standard=vendor/metasyntactical/composer-codesniffer-hooks/Symfony2/ruleset.xml