PHP code example of umbrellio / code-style-php

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

    

umbrellio / code-style-php example snippets




declare(strict_types=1);

use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

return static function(ContainerConfigurator $containerConfigurator): void {
    $containerConfigurator->import(__DIR__ . '/vendor/umbrellio/code-style-php/umbrellio-cs.php');
};
shell
php composer.phar 
yaml
imports:
  - { resource: vendor/umbrellio/code-style-php/umbrellio-cs.yml }

vendor/bin/ecs check src --fix --config=ecs.php