kronostechnologies / php-coding-standard
Equisoft PHP coding standard
Installs: 221 073
Dependents: 8
Suggesters: 0
Security: 0
Stars: 0
Watchers: 12
Forks: 0
Open Issues: 1
pkg:composer/kronostechnologies/php-coding-standard
Requires
- squizlabs/php_codesniffer: ^3.5 || ^4.0
README
Linting with PHP Code Sniffer
- Install Code Sniffer:
composer require --dev squizlabs/php_codesniffer - Install the Equisoft ruleset:
composer require --dev kronostechnologies/php-code-standard - Add a
phpcs.xmlfile at the root of your project:<?xml version="1.0"?> <ruleset> <rule ref="./vendor/kronostechnologies/php-coding-standard/phpcs.xml"/> </ruleset>
- Add an entry in your Makefile:
check: phpcs phpcs: ./vendor/bin/phpcs --standard="./phpcs.xml" -p -s .
- Configure CircleCI with the phpcs Orb Orb
Building & Publishing
Apply your changes, merge in master branch, then execute the following commands from the root:
# Mirrors php-coding-standard repository in kronostechnologies/php-coding-standard ./bin/split.sh # Push tag to kronostechnologies/php-coding-standard ./bin/release.sh v(MAJOR.MINOR.PATCH)
To get the latest tag without opening the php-coding-standard repository, checkout the file .tag.
Follow Semantic Versioning.
Afterwards, it is automatically published through packagist.