PHP code example of aeliot / php-cs-fixer-baseline
1. Go to this page and download the library: Download aeliot/php-cs-fixer-baseline 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/ */
aeliot / php-cs-fixer-baseline example snippets
use Aeliot\PhpCsFixerBaseline\Service\FilterFactory;
$finder->filter((new FilterFactory())->createFilter(__DIR__ . '/.php-cs-fixer-baseline.json', $config));
use Aeliot\PhpCsFixerBaseline\Dto\FilterOptions;
use Aeliot\PhpCsFixerBaseline\Service\FilterFactory;
$finder->filter((new FilterFactory())->createFilter(
__DIR__ . '/.php-cs-fixer-baseline.json',
$config,
new FilterOptions(
mode: FilterFactory::MODE_MENTIONED,
workdir: '/path/to/project',
),
));