PHP code example of sunfoxcz / coding-standard
1. Go to this page and download the library: Download sunfoxcz/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/ */
sunfoxcz / coding-standard example snippets
declare(strict_types=1);
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symplify\EasyCodingStandard\ValueObject\Option;
return function (ContainerConfigurator $containerConfigurator): void {
$containerConfigurator->import(__DIR__ . '/vendor/sunfoxcz/coding-standard/config/sunfox.php');
$parameters = $containerConfigurator->parameters();
$parameters->set(Option::FILE_EXTENSIONS, ['php', 'phpt']);
$parameters->set(Option::CACHE_DIRECTORY, __DIR__ . '/.ecs_cache');
};