ngscz / coding-standard
Coding standards
1.0.3
2021-01-01 20:46 UTC
Requires
- slevomat/coding-standard: ~5.0
This package is auto-updated.
Last update: 2026-03-01 00:34:02 UTC
README
Installation
composer require ngscz/coding-standard --dev
Usage
Create file ruleset.xml in root.
<?xml version="1.0"?>
<ruleset name="Boutiq">
<arg name="basepath" value="."/>
<rule ref="vendor/ngscz/coding-standard"/>
<!-- Directories to be checked -->
<file>app</file>
</ruleset>
PHPCS
#!/bin/sh
php vendor/bin/phpcs --standard=ruleset.xml
PHPCBF
#!/bin/sh
php vendor/bin/phpcbf --standard=ruleset.xml