https://github.com/gomzyakov/php-cs-fixer-config
Use the same php-cs-fixer configuration across all of your projects
https://github.com/gomzyakov/php-cs-fixer-config
code-standards code-style code-styles code-styling laravel laravel-pint php php-cs-fixer php-cs-fixer-config php-cs-fixer-ruleset php-styles pint
Last synced: 2 months ago
JSON representation
Use the same php-cs-fixer configuration across all of your projects
- Host: GitHub
- URL: https://github.com/gomzyakov/php-cs-fixer-config
- Owner: gomzyakov
- License: mit
- Created: 2022-06-05T17:46:20.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-22T10:30:27.000Z (about 1 year ago)
- Last Synced: 2024-04-22T11:32:46.726Z (about 1 year ago)
- Topics: code-standards, code-style, code-styles, code-styling, laravel, laravel-pint, php, php-cs-fixer, php-cs-fixer-config, php-cs-fixer-ruleset, php-styles, pint
- Language: PHP
- Homepage: https://packagist.org/packages/gomzyakov/php-cs-fixer-config
- Size: 143 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Code-style configuration for `php-cs-fixer`
[](https://packagist.org/packages/gomzyakov/php-cs-fixer-config)
[](https://packagist.org/packages/gomzyakov/php-cs-fixer-config)
[](https://github.com/gomzyakov/php-cs-fixer-config/blob/development/LICENSE)
[](https://codecov.io/gh/gomzyakov/php-cs-fixer-config)This package allows sharing identical [php-cs-fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer) formatting rules across all of your projects without copy-and-pasting configuration files.
## Quickstart
### Step 1 of 3
Install [`friendsofphp/php-cs-fixer`](https://github.com/FriendsOfPHP/PHP-CS-Fixer) & this package via Composer:
```sh
composer require --dev friendsofphp/php-cs-fixer gomzyakov/php-cs-fixer-config
```### Step 2 of 3
Then create file `.php-cs-fixer.dist.php` at the root of your project with following contents:
```php
true,
'array_indentation' => false
])
```## Support
If you find any package errors, please, [make an issue](https://github.com/gomzyakov/php-cs-fixer-config/issues) in current repository.
## License
This is open-sourced software licensed under the [MIT License](https://github.com/gomzyakov/php-cs-fixer-config/blob/main/LICENSE).
## Special thanks
- https://github.com/FriendsOfPHP/PHP-CS-Fixer
- https://mlocati.github.io/php-cs-fixer-configurator/