2017 © Pedro Peláez
 

library php-cs-fixer-config

Configurations for PhpCsFixer used by Dots United.

image

dotsunited/php-cs-fixer-config

Configurations for PhpCsFixer used by Dots United.

  • Sunday, July 29, 2018
  • by jsor
  • Repository
  • 6 Watchers
  • 0 Stars
  • 264 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 15 % Grown

The README.md

php-cs-fixer-config

Build Status, (*1)

Configurations for friendsofphp/php-cs-fixer used by Dots United., (*2)

Installation

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

Usage

Pick a configuration

The following configurations are available:, (*3)

  • DotsUnited\PhpCsFixer\Php56Config
  • DotsUnited\PhpCsFixer\Php71Config

Configuration

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

<?php

$config = new DotsUnited\PhpCsFixer\Php56Config();

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

$cacheDir = getenv('TRAVIS') ? getenv('HOME') . '/.php-cs-fixer' : __DIR__;
$config
    ->setCacheFile($cacheDir . '/.php_cs.cache');

return $config;

Git

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

.php_cs.cache

Travis

Update your .travis.yml to cache the .php_cs.cache file:, (*6)

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

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

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

Gitlab

Update your .gitlab-ci.yml to cache the .php_cs.cache file:, (*8)

cache:
    paths:
        - .php-cs-fixer

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

test:
    script:
        - vendor/bin/php-cs-fixer fix --verbose --diff --dry-run

Credits

This package is based off refinery29/php-cs-fixer-config., (*10)

License

Copyright (c) 2017-2018 Dots United GmbH. Released under the MIT license., (*11)

The Versions

29/07 2018

dev-master

9999999-dev

Configurations for PhpCsFixer used by Dots United.

  Sources   Download

MIT

The Requires

 

The Development Requires

09/12 2017

v1.1.0

1.1.0.0

Configurations for PhpCsFixer used by Dots United.

  Sources   Download

MIT

The Requires

 

The Development Requires

21/11 2017

v1.0.2

1.0.2.0

Configurations for PhpCsFixer used by Dots United.

  Sources   Download

MIT

The Requires

 

The Development Requires

21/11 2017

v1.0.1

1.0.1.0

Configurations for PhpCsFixer used by Dots United.

  Sources   Download

MIT

The Requires

 

The Development Requires

20/11 2017

v1.0.0

1.0.0.0

Configurations for PhpCsFixer used by Dots United.

  Sources   Download

MIT

The Requires

 

The Development Requires