signpostmarv / php-cs-fixer-config
PHP-CS-Fixer Config
Installs: 7 171
Dependents: 26
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: ^7.4|^8.0
- friendsofphp/php-cs-fixer: ^3.48
Requires (Dev)
- maglnet/composer-require-checker: ^3.8
- povils/phpmnd: ^3.4
- roave/security-advisories: dev-latest
- sebastian/phpcpd: ^6.0
- vimeo/psalm: ^5.20
- dev-main
- v0.24.0
- v0.23.0
- v0.22.0
- v0.21.1
- v0.21.0
- v0.20.1
- v0.20.0
- v0.19.0
- v0.18.0
- v0.17.2
- v0.17.1
- v0.17.0
- v0.16.3
- v0.16.2
- v0.16.1
- v0.16.0
- 0.15.x-dev
- v0.15.4
- v0.15.3
- v0.15.2
- v0.15.1
- v0.15.0
- v0.14.0
- v0.13.0
- v0.12.0
- v0.11.1
- v0.11.0
- v0.10.0
- v0.9.0
- v0.8.0
- v0.7.0
- v0.6.2
- v0.6.1
- v0.6.0
- v0.5.1
- v0.5.0
- v0.4.0
- v0.3.1
- v0.3.0
- v0.2.0
- v0.1.1
- v0.1.0
- dev-php-7.0
- dev-php-lt7.0.8
This package is auto-updated.
Last update: 2024-11-26 12:40:24 UTC
README
There's two different versions, one for general use & one for use on projects that use static analysis.
Installation & Usage
composer require --dev signpostmarv/php-cs-fixer-config
- create your
.php_cs
or.php_cs.dist
file and enter the corresponding code for the config you wish to use
General Use
return \SignpostMarv\CS\Config::createWithPaths(...[ __FILE__, (__DIR__ . '/src/'), (__DIR__ . '/tests/'), ])
Use without PHP 7.1 Nullable return types
return \SignpostMarv\CS\ConfigUsedWithoutNullableReturn::createWithPaths(...[ __FILE__, (__DIR__ . '/src/'), (__DIR__ . '/tests/'), ])
With Static Analysis
return \SignpostMarv\CS\ConfigUsedWithStaticAnalysis::createWithPaths(...[ __FILE__, (__DIR__ . '/src/'), (__DIR__ . '/tests/'), ])
Use without PHP 7.1 Nullable return types
return \SignpostMarv\CS\ConfigUsedWithStaticAnalysisWithoutNullableReturn::createWithPaths(...[ __FILE__, (__DIR__ . '/src/'), (__DIR__ . '/tests/'), ])
Customising Rules
- Extend
SignpostMarv\CS\Config
- Either
- override the
SignpostMarv\CS\Config::DEFAULT_RULES
array const - override the
SignpostMarv\CS\Config::RuntimeResolveRules()
static method as in ConfigUsedWithStaticAnalysis
- override the