Skip to content

Provides a configuration for friendsofphp/php-cs-fixer

License

Notifications You must be signed in to change notification settings

riesenia/php-cs-fixer-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Coding Standards Fixer Rules

This repository provides configurations for friendsofphp/php-cs-fixer.

Installation

Install the latest version using composer require --dev rshop/php-cs-fixer-config

Usage

Create a configuration file .php-cs-fixer.dist.php in the root of your project:

<?php

$config = new Rshop\CS\Config\Rshop();

$config->getFinder()->in(__DIR__);

return $config;

To modify configuration file use setRule method. To declare strict types use setStrict method.