Skip to content
CodeSniffer for XuanQuynh Coding Recommendations.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci Change circle ci test job May 13, 2019
src/Standards
tests
.gitattributes
.gitignore Prepare for v1.2.0 Apr 9, 2019
.php_cs.dist
CHANGELOG.md
LICENSE.md
README.md Clean repositories May 12, 2019
composer.json
phpunit.xml.dist Update May 9, 2019

README.md

CircleCI (all branches) Packagist Packagist Version GitHub

CodeSniffer for XuanQuynh Coding Recommendations.

Requirements

  • PHP ^7.1.3

Installation

Install xuanquynh/php-codesniffer package via composer.

$ composer require xuanquynh/php-codesniffer --dev

Configure installed_path to help phpcs load customized sniffers.

$ vendor/bin/phpcs --config-set installed_paths vendor/escapestudios/symfony2-coding-standard,vendor/xuanquynh/php-codesniffer/src/Standards

Check what standards are available after installing.

$ vendor/bin/phpcs -i
$ The installed coding standards are PEAR, Squiz, MySource, PSR1, Zend, PSR12, PSR2, Symfony, SunAsterisk, Laravel and XuanQuynh

Usage

Check PHP coding convention of the given code directory.

$ vendor/bin/phpcs /path/to/code --standard=XuanQuynh

Contributing

Please read the contribution guide for more information.

License

Please read the MIT license for more information.

You can’t perform that action at this time.