Skip to content

[READ-ONLY] A Rule set for PHP-CS-Fixer mainly targeting PHP 7.1 or higher.

Notifications You must be signed in to change notification settings

suin/php-cs-fixer-rules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP-CS-Fixer Rules

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.