PHP code example of linasram / ecs-gitlab-format

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

    

linasram / ecs-gitlab-format example snippets




use LinasRam\EcsGitlabFormat\Console\Output\GitlabOutputFormatter;
// ...

return static function (ContainerConfigurator $containerConfigurator): void {
    // ...

    $containerConfigurator->services()->set(GitlabOutputFormatter::class);
};



use LinasRam\EcsGitlabFormat\Console\Output\GitlabOutputFormatter;
// ...

return static function (ECSConfig $config): void {
    // ...

    $config->services()->set(GitlabOutputFormatter::class)
        ->autowire()
        ->tag(OutputFormatterInterface::class);
};