2017 © Pedro Peláez
 

library php-cs-fixer-config

PHP CS Fixer config

image

bushbaby/php-cs-fixer-config

PHP CS Fixer config

  • Tuesday, September 5, 2017
  • by bushbaby
  • Repository
  • 1 Watchers
  • 1 Stars
  • 167 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 50 % Grown

The README.md

php-cs-fixer-config

PHP CS Fixer config, (*1)

It's based on the ideas of refinery29/php-cs-fixer-config., (*2)

Installation

Run, (*3)

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

Usage

Configuration

Create a configuration file .php-cs-fixer.php in the root of your project:, (*4)

<?php

$config = new Bsb\CS\Config();
$config->getFinder()->in(__DIR__);

$cacheDir = getenv('TRAVIS') ? getenv('HOME') . '/.php-cs-fixer' : __DIR__;

$config->setCacheFile($cacheDir . '/.php-cs-fixer.cache');

return $config;

Git

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

vendor/
.php-cs-fixer.cache

Travis

Update your .travis.yml to cache the .php-cs-fixer directory:, (*6)

cache:
  directories:
    - $HOME/.php-cs-fixer

Then run php-cs-fixer in the script section:, (*7)

script:
  - vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --verbose --diff --dry-run

GitLab

Update your .gitlab-ci to cache the .php-cs-fixer.cache file:, (*8)

  script:
    - vendor/bin/php-cs-fixer fix --config=.php_cs --verbose --diff --dry-run

Fixing issues

Manually

If you need to fix issues locally, just run, (*9)

$ ./vendor/bin/php-cs-fixer fix -v

License

This package is licensed using the MIT License., (*10)

The Versions

05/09 2017

dev-master

9999999-dev

PHP CS Fixer config

  Sources   Download

MIT

The Requires

 

05/09 2017

1.0.5

1.0.5.0

PHP CS Fixer config

  Sources   Download

MIT

The Requires

 

01/09 2017

1.0.4

1.0.4.0

PHP CS Fixer config

  Sources   Download

MIT

The Requires

 

22/03 2017

1.0.3

1.0.3.0

PHP CS Fixer config for plhw components

  Sources   Download

MIT

The Requires

 

22/03 2017

1.0.2

1.0.2.0

PHP CS Fixer config for plhw components

  Sources   Download

MIT

The Requires

 

26/02 2017

1.0.1

1.0.1.0

PHP CS Fixer config for plhw components

  Sources   Download

MIT

The Requires

 

26/02 2017

1.0.0

1.0.0.0

PHP CS Fixer config for plhw components

  Sources   Download

MIT

The Requires