https://github.com/fox91/php-coding-standard
fox91 PHP Coding Standards
https://github.com/fox91/php-coding-standard
php phpcs-standard
Last synced: 6 months ago
JSON representation
fox91 PHP Coding Standards
- Host: GitHub
- URL: https://github.com/fox91/php-coding-standard
- Owner: fox91
- License: mit
- Created: 2021-04-30T14:36:03.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-12-15T02:01:16.000Z (6 months ago)
- Last Synced: 2025-12-26T23:47:19.314Z (6 months ago)
- Topics: php, phpcs-standard
- Language: PHP
- Homepage:
- Size: 187 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - fox91/php-coding-standard - fox91 PHP Coding Standards (PHP)
README
# fox91 PHP Coding Standards
[](https://packagist.org/packages/fox91/coding-standard)
[](https://packagist.org/packages/fox91/coding-standard)
[](https://github.com/fox91/php-coding-standard/actions?query=workflow%3Aphp-ci+branch%3Amain)
Compatible with PHP `7.4`, `8.0`, `8.1`, `8.2`, `8.3` and `8.4`.
## Included tools
- [PHP_CodeSniffer](https://packagist.org/packages/squizlabs/php_codesniffer)
+ [`dealerdirect/phpcodesniffer-composer-installer`](https://packagist.org/packages/dealerdirect/phpcodesniffer-composer-installer): PHP_CodeSniffer Standards Composer Installer
+ [`pheromone/phpcs-security-audit`](https://packagist.org/packages/pheromone/phpcs-security-audit): finds vulnerabilities and weaknesses related to security
+ [`sirbrillig/phpcs-import-detection`](https://packagist.org/packages/sirbrillig/phpcs-import-detection): look for unused or unimported symbols
+ [`sirbrillig/phpcs-variable-analysis`](https://packagist.org/packages/sirbrillig/phpcs-variable-analysis): detect problems with variables
+ [`slevomat/coding-standard`](https://packagist.org/packages/slevomat/coding-standard): complements Consistence Coding Standard by providing sniffs with additional checks
+ [`phpcompatibility/php-compatibility`](https://packagist.org/packages/phpcompatibility/php-compatibility): checks for PHP cross-version compatibility
## Optional tools
- [`pheromone/phpcs-security-audit`](https://packagist.org/packages/pheromone/phpcs-security-audit): finds vulnerabilities and weaknesses related to security in PHP code
## Installation
```bsh
composer require --dev fox91/coding-standard
```
Create a file named `.phpcs.xml.dist` in the root of your project:
```xml
src
tests
```