Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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/