ngscz / coding-standard
Coding standards
Installs: 7 471
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- slevomat/coding-standard: ~5.0
This package is auto-updated.
Last update: 2025-04-29 01:04:15 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