Skip to content

A dev helper which provides coding standards and quality settings.

License

Notifications You must be signed in to change notification settings

chubbyphp/chubbyphp-dev-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

chubbyphp-dev-helper

Latest Stable Version Total Downloads Monthly Downloads

Description

A dev helper which provides coding standards and quality settings.

Requirements

  • php: ^8.1
  • friendsofphp/php-cs-fixer: ^3.40

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)
    ->setIndent($config['indent'])
    ->setLineEnding($config['lineEnding'])
    ->setRules($config['rules'])
    ->setRiskyAllowed($config['riskyAllowed'])
    ->setFinder($finder)
;

Copyright

2024 Dominik Zogg

About

A dev helper which provides coding standards and quality settings.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages