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

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

Packagist Packagist Version GitHub

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