2017 © Pedro Peláez
 

library symfony2-coding-standard

A code standard to check against the Symfony coding standards.

image

phpextra/symfony2-coding-standard

A code standard to check against the Symfony coding standards.

  • Thursday, September 18, 2014
  • by jkobus
  • Repository
  • 1 Watchers
  • 0 Stars
  • 388 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 144 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Symfony2 PHP CodeSniffer Coding Standard + Object Calisthenics

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

Installation

  1. Install phpcs and this coding standard via composer.json:, (*2)

    "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., (*3)

To check the coding standard, run from the Symfony2-coding-standard source root:, (*4)

$ phpcs --ignore=*/tests/* --standard=PEAR . -n

The unit-tests are run from within the PHP_CodeSniffer directory:, (*5)

$ phpunit --filter Symfony2_* tests/AllTests.php

The Versions

18/09 2014

dev-master

9999999-dev

A code standard to check against the Symfony coding standards.

  Sources   Download

MIT

16/05 2013

dev-remaster

dev-remaster

Symfony coding standard for PHP_CodeSniffer

  Sources   Download

MIT