kazuto / php-cs-preset
PHP Coding Standards Fixer Preset
Installs: 30
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/kazuto/php-cs-preset
Requires
- php: 8.*
- friendsofphp/php-cs-fixer: ^3.2
This package is auto-updated.
Last update: 2025-09-23 17:16:05 UTC
README
composer required kazuto/php-cs-preset --dev
Usage
- Create a configuration file
touch .php-cs-fixer.dist.php
- Add the following content to the file for the minimum setup
<?php use Kazuto\PhpCsPreset\Preset; $classLoader = require __DIR__ . '/vendor/autoload.php'; $classLoader->register(true); // Override rules to your liking $rules = [ ]; $finder = PhpCsFixer\Finder::create() ->in([ __DIR__ . '/path/to/your/source/code', ]); return Preset::apply($finder, $rules);