PHPackages                             mxrvx/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. [Testing &amp; Quality](/categories/testing)
4. /
5. mxrvx/code-style

ActiveLibrary[Testing &amp; Quality](/categories/testing)

mxrvx/code-style
================

Code style and static analysis tools rulesets collection

v1.0.1(7mo ago)0407MITPHPPHP &gt;=8.0

Since Apr 10Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/mxrvx/code-style)[ Packagist](https://packagist.org/packages/mxrvx/code-style)[ RSS](/packages/mxrvx-code-style/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (2)Versions (3)Used By (7)

Code style presets for MXRVX components
=======================================

[](#code-style-presets-for-mxrvx-components)

This repository contains ruleset for [PHP CS Fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer) based on PER-2.

Installation and configuration
------------------------------

[](#installation-and-configuration)

Install the package via composer:

```
composer require --dev mxrvx/code-style

```

[![PHP](https://camo.githubusercontent.com/af9ae9784f5f312906a3e17cb0e481a0b65dd5501bc18922772080bb817324c2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6d787276782f636f64652d7374796c652e7376673f7374796c653d666c61742d737175617265266c6f676f3d706870)](https://packagist.org/packages/mxrvx/code-style)[![Latest Version on Packagist](https://camo.githubusercontent.com/833be5df70a49e8fe9262767b0feeffb8cc3bd2273b9663fd99bc6b3e279501d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d787276782f636f64652d7374796c652e7376673f7374796c653d666c61742d737175617265266c6f676f3d7061636b6167697374)](https://packagist.org/packages/mxrvx/code-style)[![License](https://camo.githubusercontent.com/4bc1cd91cd7e18b2da79bc4ea52ec353053e9c6fb4393ca0a6ab7ac933f2628c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d787276782f636f64652d7374796c652e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Total Downloads](https://camo.githubusercontent.com/e777fc25e3a641d5e67c9bd11c415d691b95e3732163e0b663f1f8dda76a470b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d787276782f636f64652d7374796c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mxrvx/code-style)

Create a configuration file `.php-cs-fixer.dist.php` in the root of your project:

```
