PHPackages                             ely/php-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ely/php-code-style

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ely/php-code-style
==================

Set of PHP-CS-Fixer rules used in the development of Ely.by PHP projects

1.0.1(2y ago)421.9k↓31.8%3[1 issues](https://github.com/elyby/php-code-style/issues)6Apache-2.0PHPPHP ^7.4 || ^8.0

Since Apr 17Pushed 1y ago2 watchersCompare

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

READMEChangelog (8)Dependencies (5)Versions (9)Used By (6)

Ely.by PHP-CS-Fixer rules
=========================

[](#elyby-php-cs-fixer-rules)

Set of PHP-CS-Fixer rules used in development of Ely.by PHP projects. It's suited for PHP 7.4 and above.

[![Latest Version on Packagist](https://camo.githubusercontent.com/2e82b46aab4665db1b31b1e88e3953c76ed58258c3e0a935a4ccd447ab983e3b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656c792f7068702d636f64652d7374796c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ely/php-code-style)[![Total Downloads](https://camo.githubusercontent.com/a5b7be157fc05f78b3700c1504ea6eb32deac70814f9834826ef708584b077e1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656c792f7068702d636f64652d7374796c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ely/php-code-style/stats)[![Software License](https://camo.githubusercontent.com/0a0e879b2b44bbdbacecd66388e5d0e6fa20f57dc9f604a1566ce195a540ba1b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4170616368652d677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/e10c261f6396c75bcb86a96afea2ec2fe03dc309956d684161a2fd7be548f047/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f656c7962792f7068702d636f64652d7374796c652f63692e796d6c3f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://github.com/elyby/php-code-style/actions)

Installation
------------

[](#installation)

First of all install Ely.by PHP-CS-Fixer rules via composer with [PHP-CS-Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer):

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

Then create a file `.php-cs-fixer.php` with the following contents:

```
