PHP code example of bushbaby / php-cs-fixer-config

1. Go to this page and download the library: Download bushbaby/php-cs-fixer-config library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

bushbaby / php-cs-fixer-config example snippets




$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;

vendor/
.php-cs-fixer.cache
yml
cache:
  directories:
    - $HOME/.php-cs-fixer
yml
script:
  - vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --verbose --diff --dry-run

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