sunfoxcz / coding-standard
Sunfox coding standard
Installs: 1 530
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^7.4 || ^8.0
- nette/coding-standard: ^3.1
This package is auto-updated.
Last update: 2024-10-29 05:16:31 UTC
README
This is set of sniff and fixers combined under EasyCodingStandard that checks and fixes your PHP code.
Versions
Installation
composer require sunfoxcz/coding-standard
Example ecs.php
<?php 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'); };