chubbyphp / chubbyphp-dev-helper
A dev helper which provides coding standards and quality settings.
Installs: 29 910
Dependents: 32
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: ^7.2|^8.0
- friendsofphp/php-cs-fixer: ^2.17.3
- nunomaduro/phpinsights: ^1.14
This package is auto-updated.
Last update: 2021-01-02 11:13:25 UTC
README
Description
A dev helper which provides coding standards and quality settings.
Requirements
- php: ^7.2|^8.0
- friendsofphp/php-cs-fixer: ^2.17.2
- nunomaduro/phpinsights: ^1.14
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 PhpCsFixer\Config::create() ->setIndent($config['indent']) ->setLineEnding($config['lineEnding']) ->setRules($config['rules']) ->setRiskyAllowed($config['riskyAllowed']) ->setFinder($finder) ;
PHP-INSIGHTS
<?php declare(strict_types=1); /** @var array $config */ $config = require __DIR__ . '/vendor/chubbyphp/chubbyphp-dev-helper/phpinsights.php'; return $config;
Copyright
Dominik Zogg 2020