PHPackages                             gomzyakov/code-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. gomzyakov/code-style

ActivePackage

gomzyakov/code-style
====================

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

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

Since Jun 7Pushed 2mo ago1 watchersCompare

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

READMEChangelog (10)Dependencies (8)Versions (109)Used By (1)

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:

```
