fox91 / coding-standard
fox91 Coding Standard
Package info
github.com/fox91/php-coding-standard
Type:phpcodesniffer-standard
pkg:composer/fox91/coding-standard
v0.6.0
2026-04-20 15:01 UTC
Requires
- php: ^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0
- dealerdirect/phpcodesniffer-composer-installer: ^1.2
- phpcompatibility/php-compatibility: ^10.0
- slevomat/coding-standard: ^8.28
- squizlabs/php_codesniffer: ^4.0
- dev-main
- v0.6.0
- v0.5.0
- v0.4.1
- v0.4.0
- v0.3.3
- v0.3.2
- v0.3.1
- v0.3.0
- v0.2.12
- v0.2.11
- v0.2.10
- v0.2.9
- v0.2.8
- v0.2.7
- v0.2.6
- v0.2.5
- v0.2.4
- v0.2.3
- v0.2.2
- v0.2.1
- v0.2.0
- v0.1.4
- v0.1.3
- v0.1.2
- v0.1.1
- v0.1.0
- dev-dependabot/github_actions/dessant/lock-threads-6.0.0
- dev-dependabot/github_actions/actions/cache-5
- dev-doctrine
This package is auto-updated.
Last update: 2026-04-20 15:01:42 UTC
README
Compatible with PHP 7.4, 8.0, 8.1, 8.2, 8.3, 8.4 and 8.5.
Included tools
- PHP_CodeSniffer
dealerdirect/phpcodesniffer-composer-installer: PHP_CodeSniffer Standards Composer Installerslevomat/coding-standard: complements Consistence Coding Standard by providing sniffs with additional checksphpcompatibility/php-compatibility: checks for PHP cross-version compatibility
Installation
composer require --dev fox91/coding-standard
Create a file named .phpcs.xml.dist in the root of your project:
<?xml version="1.0" encoding="UTF-8"?> <ruleset> <!-- https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki/Annotated-Ruleset --> <!-- https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki/Advanced-Usage --> <arg name="extensions" value="php"/> <arg name="tab-width" value="4"/> <arg name="basepath" value="."/> <arg name="parallel" value="80"/> <arg name="report" value="full"/> <arg name="cache" value=".phpcs.cache"/> <arg value="s"/> <file>src</file> <file>tests</file> <config name="ignore_warnings_on_exit" value="1"/> <config name="ParanoiaMode" value="1"/> <!-- PHPCompatibility config --> <!-- <config name="testVersion" value="7.4"/> --> <rule ref="Fox91CodingStandard"/> </ruleset>