kdyby / coding-standard
Kdyby Coding Style
Installs: 6 155
Dependents: 7
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 6
Open Issues: 4
Requires
- php: ^7.1
- consistence/coding-standard: ~1.1.0
- nette/utils: ^2.3@dev || ^3.0@dev
- slevomat/coding-standard: ^2.4
- squizlabs/php_codesniffer: ^2.9.1
Requires (Dev)
- phpunit/phpunit: ^6.1
This package is auto-updated.
Last update: 2024-11-28 08:12:44 UTC
README
Variation of Slevomat Coding Standard and Consistence Coding Standard of PHPCodeSniffer coding style rules.
Installation
Install the kdyby/coding-standard
with Composer:
composer require --dev kdyby/coding-standard
Usage
There is a standard for PHP 7.1+
vendor/bin/phpcs --standard=vendor/kdyby/coding-standard/KdybyCodingStandard/ruleset-7.1.xml --encoding=utf-8 -sp src tests
Customization
To allow customization, just include the ruleset-7.1.xml
standard in you project's ruleset.xml
<?xml version="1.0"?> <ruleset name="My Project"> <rule ref="vendor/kdyby/coding-standard/KdybyCodingStandard/ruleset-7.1.xml"/> <!-- custom settings --> </ruleset>