https://github.com/mfn/php-cs-fixer-config
My opinionated php-cs-fixer config
https://github.com/mfn/php-cs-fixer-config
php php-cs-fixer-config
Last synced: 2 months ago
JSON representation
My opinionated php-cs-fixer config
- Host: GitHub
- URL: https://github.com/mfn/php-cs-fixer-config
- Owner: mfn
- Created: 2021-04-07T22:59:58.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T07:06:26.000Z (over 1 year ago)
- Last Synced: 2024-05-01T23:56:21.438Z (about 1 year ago)
- Topics: php, php-cs-fixer-config
- Language: PHP
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# My opinionated php-cs-fixer config for v3.11 and up
Not much to say, these are my opinions.
GitHub issues are disabled, as there's likely not much to discuss here.
If you feel strongly about something, please create a PR and let's look at the technical side together.
## Usage
The rules require `setRiskyAllowed(true)`.
In your php-cs-fixer config:
```php
require 'vendor/autoload.php';$rules = \Mfn\PhpCsFixer\Config::getRules();
return (new PhpCsFixer\Config())
->setFinder(…)
->setRiskyAllowed(true)
->setRules($rules);
```## License
None? Pick what you want? I don't care, it's just a configuration.