Skip to content

plumthedev/yii2-php-cs-fixer-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yii2 PHP CS Fixer Config

PHP CS Fixer config for Yii2 projects

Installation

$ composer require --dev plumthedev/yii2-php-cs-fixer-config

Usage

Create a configuration file .php_cs in the root of your project:

<?php

use plumthedev\PhpCsFixer\Config;

$csConfig = Config::create();
$csConfigFinder = $csConfig->getFinder();

$csConfigFinder->in(__DIR__); // set finder root directory
$csConfig->setFinder($csConfigFinder);

return $csConfig;

Running the tests

PHPUnit

$ composer unit-tests

PHP CS Fixer

$ composer cs-fix

Contributing

This library is open source so if you want to contribute, you can.

Please submit bug reports, suggestions and pull requests to the GitHub issue tracker.

License

This project is licensed under the MIT License - see the LICENSE file for details