biano / coding-standard
Coding standard for Biano projects
Installs: 40
Dependents: 2
Suggesters: 0
Security: 0
Stars: 1
Watchers: 5
Forks: 0
Open Issues: 0
Type:phpcodesniffer-standard
Requires
- php: ^8.0
- dealerdirect/phpcodesniffer-composer-installer: ^0.7.2
- doctrine/coding-standard: ^10.0
- squizlabs/php_codesniffer: ^3.7
Requires (Dev)
- ergebnis/composer-normalize: ^2.42
- roave/security-advisories: dev-master
README
- Run
composer require --dev biano/coding-standard
- Create
phpcs.xml.dist
file with:
<?xml version="1.0" encoding="UTF-8"?> <ruleset name="Coding Standard"> <!-- basic settings --> <arg name="extensions" value="php"/> <arg name="encoding" value="utf-8"/> <arg name="colors"/> <arg value="sp"/> <file>src</file> <file>tests</file> <!-- standard --> <rule ref="BianoCodingStandard" /> </ruleset>
PhpStorm
Exported settings for PhpStorm are in the file PhpStorm.xml
.