phpextra/symfony2-coding-standard

This package is abandoned and no longer maintained. No replacement package was suggested.

A code standard to check against the Symfony coding standards.

dev-master 2014-09-18 11:37 UTC

This package is not auto-updated.

Last update: 2022-02-01 12:39:44 UTC


README

A code standard to check against the Symfony coding standards and object calisthenics (adapted for PHP).

Installation

  1. 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