PHPackages                             gomzyakov/php-style - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. gomzyakov/php-style

Abandoned → [gomzyakov/code-style](/?search=gomzyakov%2Fcode-style)Package[Utility &amp; Helpers](/categories/utility)

gomzyakov/php-style
===================

Code style configuration for `php-cs-fixer` based on PSR-12.

v2.4.0(2mo ago)41.2k3[1 issues](https://github.com/gomzyakov/code-style/issues)[2 PRs](https://github.com/gomzyakov/code-style/pulls)MITPHPPHP ^8.3CI passing

Since Jun 7Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/gomzyakov/code-style)[ Packagist](https://packagist.org/packages/gomzyakov/php-style)[ Docs](https://github.com/gomzyakov/code-style)[ RSS](/packages/gomzyakov-php-style/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (108)Used By (0)

Code-style configuration for `php-cs-fixer`
===========================================

[](#code-style-configuration-for-php-cs-fixer)

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
----------

[](#quickstart)

### Step 1 of 3

[](#step-1-of-3)

Install [`friendsofphp/php-cs-fixer`](https://github.com/FriendsOfPHP/PHP-CS-Fixer) &amp; this package via Composer:

```
composer require --dev friendsofphp/php-cs-fixer gomzyakov/code-style
```

### Step 2 of 3

[](#step-2-of-3)

Then create file `.php-cs-fixer.dist.php` at the root of your project with following contents:

```
