clntdev / coding-standards
Personal PHP Coding Standards
Installs: 493
Dependents: 5
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/clntdev/coding-standards
Requires
Suggests
- niels-de-blaauw/php-doc-check: Checks if the function requires a doc block
This package is auto-updated.
Last update: 2025-09-22 22:57:48 UTC
README
A standard set of linting rules for PHP projects.
Installation
You can then install the package via composer:
composer require clntdev/coding-standards --dev
Standard composer scripts
Below are the scripts that you should add to your composer.json
to simplify working with these tools.
Note
doc-check
can be removed from the below scripts if not in use
"scripts": {
"php-lint": "vendor/bin/parallel-lint --exclude vendor --exclude node_modules --exclude sdk/vendor .",
"phpcs": "vendor/bin/phpcs YOUR_DIRECTORIES --standard=./vendor/clntdev/coding-standards/phpcs.xml",
"doc-check": "vendor/bin/php-doc-check YOUR_DIRECTORIES",
"lint": [
"@composer php-lint",
"@composer phpcs",
"@composer doc-check",
],
"cbf": "vendor/bin/phpcbf YOUR_DIRECTORIES --standard=./vendor/clntdev/coding-standards/phpcs.xml",
}