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

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

    

palmtree / php-cs-fixer-config example snippets

json
"scripts": {
    "sniff": "vendor/bin/php-cs-fixer fix -v --dry-run --stop-on-violation --using-cache=no --diff --diff-format=udiff",
    "fix": "vendor/bin/php-cs-fixer fix --diff",
}
bash
$ cp vendor/palmtree/php-cs-fixer-config/.php_cs.dist .

/.php_cs.cache
/.php_cs