No description, website, or topics provided.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Sniffs
Tests/Formatting
.gitignore
README.md
composer.json
ruleset.xml

README.md

Symfony2 PHP CodeSniffer Coding Standard

Packagist

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