silverstripe / standards
A set of coding standards which are applied to all commercially supported Silverstripe CMS modules
Installs: 106 352
Dependents: 72
Suggesters: 1
Security: 0
Stars: 1
Watchers: 7
Forks: 1
Open Issues: 1
Requires
- php: ^8.1
- phpstan/phpstan: ^1.11
Requires (Dev)
- phpunit/phpunit: ^9.6
- silverstripe/framework: ^5.2
- squizlabs/php_codesniffer: ^3.7
Suggests
- phpstan/extension-installer: Automatically includes rules from this repo in your phpstan config
README
This repository contains some dependencies, custom rules, and predefined rulesets which are used to help maintain coding standards for Silverstripe CMS commercially supported modules.
Installation
To use this extension, require it in Composer:
composer require --dev silverstripe/standards
If you also install phpstan/extension-installer then you're all set!
Manual installation
If you don't want to use phpstan/extension-installer
, include rules.neon in your project's PHPStan config:
includes: - vendor/silverstripe/standards/rules.neon