frankverhoeven / coding-standard
FV Coding Standard
Installs: 4 512
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:phpcodesniffer-standard
Requires
- php: ^8.1
- dealerdirect/phpcodesniffer-composer-installer: ^1.0
- doctrine/coding-standard: ^12.0
Requires (Dev)
- roave/security-advisories: dev-latest
README
Set of PHP_CodeSniffer rules, heavily based on the Doctrine Coding Standard.
Install
Install the package with composer:
composer require frankverhoeven/coding-standard --dev
Configure
Add the ruleset to your phpcs.xml.dist
file:
<?xml version="1.0" encoding="UTF-8"?> <ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd" > <arg name="basepath" value="."/> <arg name="cache" value=".phpcs-cache"/> <arg name="colors"/> <arg name="extensions" value="php"/> <arg name="parallel" value="80"/> <arg value="sp"/> <file>src</file> <file>tests</file> <rule ref="FrankVerhoeven"/> </ruleset>