chubbyphp / chubbyphp-dev-helper
A dev helper which provides coding standards and quality settings.
dev-master
2026-02-04 17:09 UTC
Requires
- php: ^8.3
- friendsofphp/php-cs-fixer: ^3.91.2
This package is auto-updated.
Last update: 2026-03-04 17:21:19 UTC
README
Description
A dev helper which provides coding standards and quality settings.
Requirements
- php: ^8.3
- friendsofphp/php-cs-fixer: ^3.91.2
Installation
Through Composer as chubbyphp/chubbyphp-dev-helper.
composer require --dev chubbyphp/chubbyphp-dev-helper dev-master
Usage
PHP-CS-FIXER
<?php declare(strict_types=1); $finder = PhpCsFixer\Finder::create() ->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) ->setUnsupportedPhpVersionAllowed(true) ->setIndent($config['indent']) ->setLineEnding($config['lineEnding']) ->setRules($config['rules']) ->setRiskyAllowed($config['riskyAllowed']) ->setFinder($finder) ;
Copyright
2026 Dominik Zogg