cpsit / php-cs-fixer-config
Shared PHP-CS-Fixer configuration for CPS projects
Installs: 35 604
Dependents: 3
Suggesters: 0
Security: 0
Stars: 1
Watchers: 8
Forks: 0
Open Issues: 2
Requires
- php: ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0
- friendsofphp/php-cs-fixer: ^3.14
Requires (Dev)
- armin/editorconfig-cli: ^1.8 || ^2.0
- ergebnis/composer-normalize: ^2.41
- phpstan/extension-installer: ^1.3
- phpstan/phpstan: ^1.10
- phpstan/phpstan-deprecation-rules: ^1.1
- phpstan/phpstan-phpunit: ^1.3
- phpstan/phpstan-strict-rules: ^1.5
- phpunit/phpunit: ^10.1 || ^11.0
- rector/rector: ^1.0.0
This package is auto-updated.
Last update: 2024-11-18 03:30:24 UTC
README
PHP-CS-Fixer config
This package contains basic PHP-CS-Fixer configuration for use in CPS projects. All configuration options are shipped as rulesets targeting different use cases.
🔥 Installation
composer require --dev cpsit/php-cs-fixer-config
⚡ Usage
Configure PHP-CS-Fixer in your .php-cs-fixer.php
file:
use CPSIT\PhpCsFixerConfig; use PhpCsFixer\Config; // Create config object and configure Finder $config = new Config(); $config->getFinder()->in(__DIR__); // Apply ruleset $ruleset = new PhpCsFixerConfig\Rule\DefaultRuleset(); $ruleset->apply($config); return $config;
🧑💻 Contributing
Please have a look at CONTRIBUTING.md
.
⭐ License
This project is licensed under GNU General Public License 3.0 (or later).