PHP code example of bombenprodukt / php-cs-fixer-config

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

    

bombenprodukt / php-cs-fixer-config example snippets


// .php-cs-fixer.php


use BombenProdukt\PhpCsFixer\ConfigurationFactory;
use BombenProdukt\PhpCsFixer\Preset\Standard;

$header = <<<EOF
Copyright (c) 2023 BombenProdukt

For the full copyright and license information, please view
the LICENSE file that was distributed with this source code.
EOF;

$config = ConfigurationFactory::fromPreset(new Standard($header));
$config->getFinder()->in(__DIR__);

return $config;