suin/php-cs-fixer-rules

A Rule set for PHP-CS-Fixer mainly targeting PHP 7.1 or higher.

2.2.1 2020-12-04 01:55 UTC

This package is auto-updated.

Last update: 2024-12-04 10:42:39 UTC


README

license-badge release-version-badge php-version-badge

A Rule set for PHP-CS-Fixer mainly targeting PHP 7.1 or higher. See Rules.php for the rules detail.

Installation via Composer

$ composer require --dev suin/php-cs-fixer-rules

Setting up .php_cs.dist

Create .php_cs.dist in your project:

<?php

return PhpCsFixer\Config::create()
    ->setRiskyAllowed(true)
    ->setRules(Suin\PhpCsFixer\Rules::create([
        // If you want to overwrite default rules
        // add rules here.
        'declare_strict_types' => false,
    ]))
    ->setFinder(PhpCsFixer\Finder::create()
        ->exclude('vendor')
        ->in(__DIR__)
    );

Changelog

Please see CHANGELOG for more details.

Contributing

Send issue or pull-request to main repository.