PHP code example of codelytv / coding-style

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

    

codelytv / coding-style example snippets


    use CodelyTv\CodingStyle;
    use Symplify\EasyCodingStandard\Config\ECSConfig;

    return function (ECSConfig $ecsConfig): void {
        $ecsConfig->paths([__DIR__ . '/src',]);

        $ecsConfig->sets([CodingStyle::DEFAULT]);

        // Or this if you prefer to have the code aligned
        // $ecsConfig->sets([CodingStyle::ALIGNED]);
    };
    

    use Symplify\EasyCodingStandard\ValueObject\Option;

	$ecsConfig->indentation(Option::INDENTATION_SPACES);