https://github.com/chubbyphp/chubbyphp-dev-helper
A dev helper which provides coding standards and quality settings.
https://github.com/chubbyphp/chubbyphp-dev-helper
php-cs-fixer
Last synced: about 2 months ago
JSON representation
A dev helper which provides coding standards and quality settings.
- Host: GitHub
- URL: https://github.com/chubbyphp/chubbyphp-dev-helper
- Owner: chubbyphp
- License: mit
- Created: 2020-02-02T09:27:34.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-03-12T13:52:19.000Z (3 months ago)
- Last Synced: 2025-03-27T18:55:25.509Z (2 months ago)
- Topics: php-cs-fixer
- Language: PHP
- Homepage:
- Size: 24.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# chubbyphp-dev-helper
[](https://packagist.org/packages/chubbyphp/chubbyphp-dev-helper)
[](https://packagist.org/packages/chubbyphp/chubbyphp-dev-helper)
[](https://packagist.org/packages/chubbyphp/chubbyphp-dev-helper)## Description
A dev helper which provides coding standards and quality settings.
## Requirements
* php: ^8.2
* friendsofphp/php-cs-fixer: ^3.65## Installation
Through [Composer](http://getcomposer.org) as [chubbyphp/chubbyphp-dev-helper][1].
```sh
composer require --dev chubbyphp/chubbyphp-dev-helper dev-master
```## Usage
### PHP-CS-FIXER
```php
files()
->name('*.php')
->in(__DIR__ . '/src')
->in(__DIR__ . '/tests')
;/** @var array $config */
$config = require __DIR__ . '/vendor/chubbyphp/chubbyphp-dev-helper/phpcs.php';return (new PhpCsFixer\Config)
->setIndent($config['indent'])
->setLineEnding($config['lineEnding'])
->setRules($config['rules'])
->setRiskyAllowed($config['riskyAllowed'])
->setFinder($finder)
;
```## Copyright
2025 Dominik Zogg
[1]: https://packagist.org/packages/chubbyphp/chubbyphp-dev-helper