sepiphy/php-codesniffer

CodeSniffer for Sepiphy Coding Recommendations.

v3.0.0 2020-06-05 06:57 UTC

README

Tests Packagist Packagist Version GitHub

CodeSniffer for Sepiphy Coding Recommendations

Requirements

  • PHP >=7.1.3

Installation

Install sepiphy/php-codesniffer 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