drupol / phpcsfixer-configs-drupal
Base PHP CS Fixer configurations for Drupal 7 and 8.
Installs: 137 513
Dependents: 3
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 4
Open Issues: 6
Requires
- php: >= 7.1.3
- drupol/phpcsfixer-configs-php: ^2
Requires (Dev)
- codeception/codeception: ^4.0
- codeception/module-cli: ^1.1
- codeception/module-filesystem: ^1.0
- drupol/php-conventions: ^5
- friends-of-phpspec/phpspec-code-coverage: ^6
- infection/infection: ^0.22
- infection/phpspec-adapter: ^0.1.1
- php-parallel-lint/php-parallel-lint: ^1.3
- phpro/grumphp: 1.1.* || 1.3.*
- phpspec/phpspec: ^7
README
PHP-Cs-Fixer Drupal Configurations
Description
This package provides a set PHP-Cs-Fixer configuration objects ready to be used in a Drupal project.
Documentation
Available configuration objects:
drupol\PhpCsFixerConfigsDrupal\Config\Drupal7
drupol\PhpCsFixerConfigsDrupal\Config\Drupal8
Requirements
- PHP >= 5.6
Installation
composer require --dev drupol/phpcsfixer-configs-drupal
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, Travis CI 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 :-)