PHP code example of melhorenvio / php-cs-fixer

1. Go to this page and download the library: Download melhorenvio/php-cs-fixer 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/ */

    

melhorenvio / php-cs-fixer example snippets


use Melhorenvio\PhpCsFixer\Style;
use PhpCsFixer\Config;
use PhpCsFixer\Finder;

$finder = Finder::create()
  ->in([
    __DIR__.'/src',
  ]);
  
$style = new Style($finder, new Config);

return $style->rules([
    'your-rule' => true
]);