2017 © Pedro Peláez
 

library php-cs-fixer-config

Mapado PHP CS Fixer configuration

image

mapado/php-cs-fixer-config

Mapado PHP CS Fixer configuration

  • Thursday, March 1, 2018
  • by jdeniau
  • Repository
  • 2 Watchers
  • 0 Stars
  • 1,936 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 29 % Grown

The README.md

Mapado php-cs-fixer-config

PHP CS Fixer config for Mapado., (*1)

Installation

$ composer require --dev mapado/php-cs-fixer-config

Usage

Configuration

Create a configuration file .php_cs in the root of your project:, (*2)

<?php

require(__DIR__ .'/vendor/autoload.php');

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

$config->getFinder()
    ->in([
        __DIR__.'/src',
    ])
    // if you want to exclude Tests directory
    // ->exclude([ 'Tests' ])
;

return $config;

Run

bin/php-cs-fixer fix --config=.php_cs

In project

You might want to use lint-staged, php-git-hooks or composer-git-hooks to run this command automatically on git files, or autofix on save in your IDE., (*3)

Git

Add .php_cs.cache (this is the cache file created by php-cs-fixer) to .gitignore:, (*4)

License

This project is licensed under the MIT license., (*5)

The Versions

01/03 2018

dev-master

9999999-dev

Mapado PHP CS Fixer configuration

  Sources   Download

MIT

The Requires

 

The Development Requires

cs codingstyle

01/03 2018

v2.1.2

2.1.2.0

Mapado PHP CS Fixer configuration

  Sources   Download

MIT

The Requires

 

The Development Requires

cs codingstyle

01/03 2018

v2.1.1

2.1.1.0

Mapado PHP CS Fixer configuration

  Sources   Download

MIT

The Requires

 

The Development Requires

cs codingstyle

27/02 2018

v2.1.0

2.1.0.0

Mapado PHP CS Fixer configuration

  Sources   Download

MIT

The Requires

 

The Development Requires

cs codingstyle

20/02 2018

v2.0.3

2.0.3.0

Mapado PHP CS Fixer configuration

  Sources   Download

MIT

The Requires

 

The Development Requires

cs codingstyle

19/02 2018

v2.0.2

2.0.2.0

Mapado PHP CS Fixer configuration

  Sources   Download

MIT

The Requires

 

The Development Requires

cs codingstyle

19/02 2018

v2.0.1

2.0.1.0

Mapado PHP CS Fixer configuration

  Sources   Download

MIT

The Requires

 

cs codingstyle

19/02 2018

v2.0.0

2.0.0.0

Mapado PHP CS Fixer configuration

  Sources   Download

MIT

The Requires

 

cs codingstyle

29/06 2017

v1.0.0

1.0.0.0

Mapado PHP CS Fixer configuration

  Sources   Download

MIT

The Requires

 

cs codingstyle