schnittstabil / sugared-php-cs-fixer
PHP-CS-Fixer sweetened with ease
Installs: 146
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
pkg:composer/schnittstabil/sugared-php-cs-fixer
Requires
- php: >=5.6.0
- friendsofphp/php-cs-fixer: ^2.0
- schnittstabil/composer-extra: ^1.0 || ^2.0
- schnittstabil/finder-by-config: ^0.1 || ^1.0
- schnittstabil/get: ^2.0 || ^3.0
Requires (Dev)
- sugared-rim/phpunit: ^2.0 || ^6.0 || ^7.0
This package is not auto-updated.
Last update: 2022-02-01 12:57:37 UTC
README
PHP-CS-Fixer sweetened with ease 🍒
SugaredRim\PHP-CS-Fixer takes an opinionated view of code style checking with PHP-CS-Fixer, it is preconfigured to get you up and running as quickly as possible.
Install
$ composer require --dev sugared-rim/php-cs-fixer
Usage
Instead of running php-cs-fixer with all its options, just run sugared-rim-php-cs-fixer - that's it:
{
...
"require-dev": {
"sugared-rim/php-cs-fixer": ...
},
"scripts": {
"lint": "sugared-rim-php-cs-fixer"
}
}
Configuration
You may overwrite some options by putting it in your composer.json.
Some of the default settings:
{
...
"scripts": {
"lint": "sugared-rim-php-cs-fixer"
},
"extra": {
"sugared-rim/php-cs-fixer": {
"diff": true,
"dry-run": true,
"cache": true,
"path": {
"in": [
"."
],
"name": [
"*.php",
"*.phtml",
"*.twig",
"*.xml",
"*.yml"
],
"exclude": [
"build",
"bower_components",
"node_modules",
"vendor"
],
"ignoreDotFiles": true,
"ignoreVCS": true
}
}
}
}
License
MIT © Michael Mayer