Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 10 days 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 (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-22T10:30:27.000Z (7 months ago)
- Last Synced: 2024-04-22T11:32:46.726Z (7 months 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`
[![packagist](https://img.shields.io/packagist/v/gomzyakov/php-cs-fixer-config.svg)](https://packagist.org/packages/gomzyakov/php-cs-fixer-config)
[![downloads_count](https://img.shields.io/packagist/dt/gomzyakov/php-cs-fixer-config.svg)](https://packagist.org/packages/gomzyakov/php-cs-fixer-config)
[![license](https://img.shields.io/badge/License-MIT-green.svg)](https://github.com/gomzyakov/php-cs-fixer-config/blob/development/LICENSE)
[![codecov](https://codecov.io/gh/gomzyakov/php-cs-fixer-config/branch/main/graph/badge.svg?token=4CYTVMVUYV)](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
])
```## Laravel Pint
The following describes the use of styles in conjunction with `friendsofphp/php-cs-fixer`. Also you can use these style settings for [Laravel Pint](PINT.md).
## 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/