PHP code example of mll-lab / php-cs-fixer-config
1. Go to this page and download the library: Download mll-lab/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/ */
mll-lab / php-cs-fixer-config example snippets
declare(strict_types=1);
use function MLL\PhpCsFixerConfig\config;
$finder = PhpCsFixer\Finder::create()
->notPath('vendor')
->in(__DIR__)
->name('*.php')
->ignoreDotFiles(true)
->ignoreVCS(true);
return config($finder);
use function MLL\PhpCsFixerConfig\risky;
return risky($finder);
return config($finder, [
'some_rule' => false,
]);
return config($finder)
->setHideProgress(true);