PHP code example of retailcrm / php-code-style

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

    

retailcrm / php-code-style example snippets


    
    
    $finder = PhpCsFixer\Finder::create()
        ->in(__DIR__ . '/src')
        // ... и другие папки, за которыми должен следить PhpCsFixer
    ;
    
    return Retailcrm\PhpCsFixer\Defaults::rules()
        ->setFinder($finder)
        // ->setCacheFile(__DIR__ . '/var/.php_cs.cache');