PHP code example of kazuto / php-cs-preset
1. Go to this page and download the library: Download kazuto/php-cs-preset 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/ */
kazuto / php-cs-preset example snippets
use Kazuto\PhpCsPreset\Preset;
$classLoader = our liking
$rules = [
];
$finder = PhpCsFixer\Finder::create()
->in([
__DIR__ . '/path/to/your/source/code',
]);
return Preset::apply($finder, $rules);