PHP code example of bitbag / coding-standard
1. Go to this page and download the library: Download bitbag/coding-standard 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/ */
bitbag / coding-standard example snippets
declare(strict_types=1);
use Symplify\EasyCodingStandard\Config\ECSConfig;
return static function (ECSConfig $config): void {
// Change this if you want to automatically add BitBag OpenSource Header
putenv('ALLOW_BITBAG_OS_HEADER=0');
$config->import('vendor/bitbag/coding-standard/ecs.php');
$config->paths(['src', 'tests']);
};
use Symplify\EasyCodingStandard\Config\ECSConfig;
use Your\Place\For\Fixer\FooBarFixer;
...
return static function (ECSConfig $config): void {
$services = $config->services();
$services->set(FooBarFixer::class);