PHP code example of dbt / php-cs-fixer-config
1. Go to this page and download the library: Download dbt/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/ */
dbt / php-cs-fixer-config example snippets
use Dbt\PhpCsFixerConfig\Loader;
use PhpCsFixer\Finder;
$finder = Finder::create()->in([
__DIR__ . '/src',
// Add your own directories here.
]);
// If you want to add your own rules. If you specify a rule that already exists
// in the base ruleset, your local rule will take precedence and override the
// base rule.
$localRules =
shell script
touch .php_cs.dist.php
yaml
parameters:
ascii: ~
tasks:
phpcsfixer2:
config: '.php_cs.dist.php'