2017 © Pedro Peláez
 

library php-cs-fixer-config

PHP CS Fixer config

image

fsevestre/php-cs-fixer-config

PHP CS Fixer config

  • Sunday, April 22, 2018
  • by fsevestre
  • Repository
  • 1 Watchers
  • 0 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 9 % Grown

The README.md

php-cs-fixer-config

PHP CS Fixer config., (*1)

Installation

Run:, (*2)

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

Usage

Configuration

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

<?php

$config = new FSevestre\CS\Config\PhpXX();

$config->getFinder()
    ->in([
        __DIR__.'/src'
    ])->exclude([
        'tests'
    ])
;

return $config;

Git

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

vendor/
.php_cs.cache

Makefile

Create a Makefile with the targets below:, (*5)

# Coding Style

cs:
    ./vendor/bin/php-cs-fixer fix --dry-run --stop-on-violation --diff

cs-fix:
    ./vendor/bin/php-cs-fixer fix --verbose

cs-ci:
    ./vendor/bin/php-cs-fixer fix --dry-run --using-cache=no --verbose --show-progress=estimating

Fixing issues

If you need to check issues locally, run:, (*6)

$ make cs

If you need to fix issues locally, run:, (*7)

$ make cs-fix

In your Continuous Integration, run:, (*8)

$ make cs-ci

Credits

Inspired by m6web/php-cs-fixer-config., (*9)

License

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

The Versions

22/04 2018

dev-master

9999999-dev https://github.com/fsevestre/php-cs-fixer-config

PHP CS Fixer config

  Sources   Download

MIT

The Requires

 

by Florent SEVESTRE

cs codingstyle

21/04 2018

v1.0.0

1.0.0.0 https://github.com/fsevestre/php-cs-fixer-config

PHP CS Fixer config

  Sources   Download

MIT

The Requires

 

by Florent SEVESTRE

cs codingstyle