Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

binalogue/php-cs-fixer-config

Repository files navigation

Binalogue - welovedesign&welovetodesign

binalogue/php-cs-fixer-config

CI

Opinionated styling rules for PHP-CS-Fixer.

Getting Started

Installing

Because we haven't submitted the package to Packagist, you have to tell Composer where to find the package, using the repositories block:

"repositories": [
 {
 "type": "vcs",
 "url": "https://github.com/binalogue/php-cs-fixer-config"
 }
]

Then:

composer require binalogue/php-cs-fixer-config:dev-master --dev

Usage

In your .php_cs.dist config file:

<?php
$finder = PhpCsFixer\Finder::create()
 ->in(__DIR__.'/src')
 ->in(__DIR__.'/tests');
return Binalogue\styles($finder);

For Laravel projects:

<?php
$finder = PhpCsFixer\Finder::create()
 ->in(__DIR__)
 ->exclude(['bootstrap', 'storage', 'vendor'])
 ->name('*.php')
 ->notName('*.blade.php')
 ->ignoreDotFiles(true)
 ->ignoreVCS(true);
return Binalogue\styles($finder);

Built With

Authors

About

πŸ”§ PHP-CS-Fixer config

Topics

Resources

Stars

Watchers

Forks

Languages

  • PHP 100.0%

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /