Download the PHP package pixelfederation/coding-standards without Composer
On this page you can find all versions of the php package pixelfederation/coding-standards. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pixelfederation/coding-standards
More information about pixelfederation/coding-standards
Files in pixelfederation/coding-standards
Package coding-standards
Short Description Standardized PHPCS sniffs for backend developers.
License BSD-3-Clause
Homepage https://github.com/pixelfederation/coding-standards
Informations about the package coding-standards
Coding standards
This package provides PHPCS rule set for coding standards in Pixel Federation. It should be included into each project maintained by Pixel Federation that uses PHP Code Sniffer PHPCS.
Migration from v4 to v5
Generic ruleset was removed. Now there are only rulesets for specific PHP versions.
Replace (in your ruleset) reference to file
with
for PHP 8.4.
How to use
Install composer dependencies
Supported versions
For each php version there are 2 versions of the ruleset. One for DDD projects and one for Non-DDD projects.
For example for PHP 8.4:
Ruleset creation
Create a file named phpcs.ruleset.xml
in the root folder of your project with the following content:
Running checks
In your project directory run this command:
Automatically fixing errors
In your project directory run this command:
Additional links
Sniffs documentation for slevomat coding standards are here: https://github.com/slevomat/coding-standard
All versions of coding-standards with dependencies
phpcompatibility/php-compatibility Version ^9.3.5
slevomat/coding-standard Version ^8.16.0
squizlabs/php_codesniffer Version ^3.7.2