PHP code example of motley / ecs-config

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

    

motley / ecs-config example snippets


// …
use Motley\EasyCodingStandard\SetList as MotleySetList

return static function (ECSConfig $ecsConfig): void {
    // Define paths, cache directory etc

    $ecsConfig->sets([MotleySetList::MOTLEY]);

    // Override anything you wish, add exclusions etc
}