1. Go to this page and download the library: Download valkyrja/phpcsfixer 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/ */
valkyrja / phpcsfixer example snippets
// .php-cs-fixer.php
use Valkyrja\Fixer\Rules;
use PhpCsFixer\Finder;
$finder = Finder::create()
->in(__DIR__ . '/src')
->in(__DIR__ . '/tests');
return Rules::getConfig($finder, 'Valkyrja Framework');
Rules::getHeader('Valkyrja Framework');
// bad
$a = array(1, 2, 3);
// good
$a = [1, 2, 3];