An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

        

# chubbyphp-dev-helper

[![Latest Stable Version](https://poser.pugx.org/chubbyphp/chubbyphp-dev-helper/v)](https://packagist.org/packages/chubbyphp/chubbyphp-dev-helper)
[![Total Downloads](https://poser.pugx.org/chubbyphp/chubbyphp-dev-helper/downloads)](https://packagist.org/packages/chubbyphp/chubbyphp-dev-helper)
[![Monthly Downloads](https://poser.pugx.org/chubbyphp/chubbyphp-dev-helper/d/monthly)](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