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

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

    

basecodeoy / php-cs-fixer-config example snippets


// .php-cs-fixer.php


use BaseCodeOy\PhpCsFixer\ConfigurationFactory;
use BaseCodeOy\PhpCsFixer\Preset\Standard;

$header = <<<EOF
Copyright (c) 2023 BaseCode Oy

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;