sepiphy / php-codesniffer
This package is abandoned and no longer maintained.
No replacement package was suggested.
Check and Fix php coding conventions
v3.0.0
2020-06-05 06:57 UTC
Requires
- php: >=7.1.3
- escapestudios/symfony2-coding-standard: ^3.8
- friendsofphp/php-cs-fixer: ^2.15
- squizlabs/php_codesniffer: ^3.4
- wataridori/framgia-php-codesniffer: ^0.3
Requires (Dev)
- phpunit/phpunit: ^7.5
- symfony/var-dumper: ^4.3
README
This package is no longer supported any more. You should refer Laravel, Symfony or any other popular community coding conventions.
Check and Fix php coding conventions
Installation
Install this package via composer:
$ composer require sepiphy/php-codesniffer --dev
Verify that our custom standards are available after installing.
$ vendor/bin/sphpcs -i
$ The installed coding standards are MySource, PEAR, PSR1, PSR12, PSR2, Squiz, Zend, Symfony, Laravel, Sepiphy and SunAsterisk
Usage
Check PHP coding conventions of the given directory:
$ vendor/bin/sphpcs /path/to/source --standard=Sepiphy
Fix PHP coding conventions of the given directory:
$ vendor/bin/sphpcbf /path/to/source --standard=Sepiphy