CARVIEW |
instaclick / symfony2-coding-standard
A code standard to check against the Symfony coding standards.
Installs: 48 326
Dependents: 15
Suggesters: 0
Security: 0
Stars: 9
Watchers: 11
Forks: 120
Open Issues: 4
pkg:composer/instaclick/symfony2-coding-standard
Requires
None
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
MIT 180a19d2a81c6c5688326ea62e63f2b8c5944142
This package is not auto-updated.
Last update: 2025-10-11 19:07:53 UTC
README
A code standard to check against the Symfony coding standards and object calisthenics (adapted for PHP).
Installation
-
Install phpcs and this coding standard via composer.json:
"require": { "instaclick/php-code-sniffer": "dev-master", "instaclick/symfony2-coding-standard": "dev-master" }
Contributing
If you do contribute code to these sniffs, please make sure it conforms to the PEAR coding standard and that the Symfony2-coding-standard unit tests still pass.
To check the coding standard, run from the Symfony2-coding-standard source root:
$ phpcs --ignore=*/tests/* --standard=PEAR . -n
The unit-tests are run from within the PHP_CodeSniffer directory:
$ phpunit --filter Symfony2_* tests/AllTests.php