tenantcloud / php-cs-fixer-rule-sets
TenantCloud's php-cs-fixer rule set
Installs: 30 356
Dependents: 19
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=8.2
- friendsofphp/php-cs-fixer: ^3.54
- kubawerlos/php-cs-fixer-custom-fixers: ^3.21
Requires (Dev)
- pestphp/pest: ^2.8
- phpstan/phpstan: ~1.10.21
- phpstan/phpstan-mockery: ^1.1
- phpstan/phpstan-phpunit: ^1.3
- phpstan/phpstan-webmozart-assert: ^1.2
README
Usage
Install the package:
composer require --dev tenantcloud/php-cs-fixer-rule-sets
Then use the rule sets in php-cs-fixer's config:
require __DIR__ . '/vendor/kubawerlos/php-cs-fixer-custom-fixers/bootstrap.php'; require __DIR__ . '/vendor/tenantcloud/php-cs-fixer-rule-sets/bootstrap.php'; use PhpCsFixer\Finder; use TenantCloud\PhpCsFixer\Config; use TenantCloud\PhpCsFixer\RuleSet\TenantCloudSet; $finder = Finder::create() ->in('src') ->in('tests') ->name('*.php') ->notName('_*.php') ->ignoreVCS(true); return Config::make()->setFinder($finder);