PHP code example of jedkirby / php-cs

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

    

jedkirby / php-cs example snippets

 php


use PhpCsFixer\Finder;
use Jedkirby\PhpCs\Config;

$finder = Finder::create();
$finder->in(__DIR__ . '/src');

$config = new Config();
$config->setFinder($finder);

return $config;

 bash
php vendor/bin/php-cs-fixer fix