blue32a / php-coding-standard
The PHP coding standard of the my projects.
Package info
github.com/blue32a/php-coding-standard
Type:phpcodesniffer-standard
pkg:composer/blue32a/php-coding-standard
v1.1.2
2024-01-01 09:03 UTC
Requires
- php: ^7.2|^8.0
- dealerdirect/phpcodesniffer-composer-installer: ^1.0
- slevomat/coding-standard: ^8.13
- squizlabs/php_codesniffer: ^3.7
This package is auto-updated.
Last update: 2026-03-01 00:33:03 UTC
README
The PHP coding standard of the my projects.
Introduction
This project is PHP_CodeSniffer rules. It also contains the rules of the Slevomat Coding Standard.
Installation
Standards can be installed with the Composer dependency manager.
composer require --dev blue32a/php-coding-standard
Make sure that the installed coding standards include Blue32a.
phpcs -i
Usage
Command line
phpcs --standard=Blue32a example.php
Configuration File
If you need to further customize the selection of sniffs for your project - you can create a custom ruleset file.
<?xml version="1.0"?> <ruleset name="MyStandard"> <rule ref="Blue32a"/> </ruleset>