drupol / phpcsfixer-configs-php
Base PHP CS Fixer configurations.
Fund package maintenance!
drupol
Installs: 310 129
Dependents: 3
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 2
Open Issues: 0
Requires
- php: >= 7.4
- friendsofphp/php-cs-fixer: ^3.49.0
- symfony/yaml: ^3 || ^4 || ^5 || ^6 || ^7
Requires (Dev)
- ext-pcov: *
- ergebnis/composer-normalize: ^2.31.0
- friends-of-phpspec/phpspec-code-coverage: ^6
- maglnet/composer-require-checker: ^4.4.0
- php-parallel-lint/php-parallel-lint: ^1.3
- phpro/grumphp: ^1.0 || ^2.0
- phpspec/phpspec: ^7
- dev-master
- 2.0.21
- 2.0.20
- 2.0.19
- 2.0.18
- 2.0.17
- 2.0.16
- 2.0.15
- 2.0.14
- 2.0.13
- 2.0.12
- 2.0.11
- 2.0.10
- 2.0.9
- 2.0.8
- 2.0.7
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.0.34
- 1.0.33
- 1.0.32
- 1.0.31
- 1.0.30
- 1.0.29
- 1.0.28
- 1.0.27
- 1.0.26
- 1.0.25
- 1.0.24
- 1.0.23
- 1.0.22
- 1.0.21
- 1.0.20
- 1.0.17.1
- 1.0.17
- 1.0.17.0-dev
- 1.0.16.0-dev
- 1.0.15.0-dev
- 1.0.14.0-dev
This package is auto-updated.
Last update: 2024-11-07 11:45:29 UTC
README
PHP-CS-Fixer Configurations
Description
This package provides a set PHP-Cs-Fixer configuration objects ready to be used in any project using PHP-Cs-Fixer.
Documentation
Available configuration objects:
drupol\PhpCsFixerConfigsPhp\Config\PSR12
drupol\PhpCsFixerConfigsPhp\Config\Php56
drupol\PhpCsFixerConfigsPhp\Config\Php7
drupol\PhpCsFixerConfigsPhp\Config\Php71
drupol\PhpCsFixerConfigsPhp\Config\Php72
drupol\PhpCsFixerConfigsPhp\Config\Php73
Each configuration object is an object implementing PhpCsFixer/ConfigInterface
.
It provides a default configuration, mandatory to configure PHP CS Fixer.
It implements the method(s):
public function withRulesFrom(...$configs);
Where the $configs
parameters must implements PhpCsFixer/ConfigInterface
.
Requirements
- PHP >= 7.4
Installation
composer require --dev drupol/phpcsfixer-configs-php
Usage
See the PHP CS Fixer documentation on how to use the configuration object.
Code quality, tests and benchmarks
Every time changes are introduced into the library, Github Actions run the tests and the benchmarks.
The library has tests written with PHPSpec.
Feel free to check them out in the spec
directory. Run composer phpspec
to trigger the tests.
Before each commit some inspections are executed with GrumPHP, run ./vendor/bin/grumphp run
to check manually.
PHPInfection is used to ensure that your code is properly tested, run composer infection
to test your code.
Contributing
Feel free to contribute to this library by sending Github pull requests. I'm quite reactive :-)