metasyntactical / symfony-coding-standard
A coding standard to check against the Symfony coding standards
Package info
github.com/MetaSyntactical/symfony-coding-standard
pkg:composer/metasyntactical/symfony-coding-standard
v1.0.3
2015-07-06 11:46 UTC
This package is auto-updated.
Last update: 2026-02-12 09:03:40 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