PHPackages                             riimu/php-cs-fixer-config - 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. riimu/php-cs-fixer-config

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

riimu/php-cs-fixer-config
=========================

Ready to use and highly opinionated php cs fixer config based on my and community standards

v0.1.1(7y ago)01435MITPHPPHP ^7.1

Since Jul 18Pushed 7y agoCompare

[ Source](https://github.com/Riimu/php-cs-fixer-config)[ Packagist](https://packagist.org/packages/riimu/php-cs-fixer-config)[ RSS](/packages/riimu-php-cs-fixer-config/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (1)Versions (3)Used By (5)

Riimu's PHP Coding Standards Fixer Config
=========================================

[](#riimus-php-coding-standards-fixer-config)

Most of my projects use a very consistent set of coding standards rules and project hierarchy. Rather than copying the same [PHP Coding Standards Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer) config file `.php_cs` file across different projects and then trying to figure out which project had the latest copy, I've created this composer package as a way to include the same set of rules into every project via composer.

These standards are based on the community's best practices and PSR standards in addition to what I personally consider to be good taste. You may freely use this configuration if you want, but do note that it may change and evolve as time passes since I reserve the right to change my mind.

[![Travis](https://camo.githubusercontent.com/28e9501bf82904918acf0d702ee9c576eeed9b52bc8b0ddb5d96e683bf52a846/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f5269696d752f7068702d63732d66697865722d636f6e6669672e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Riimu/php-cs-fixer-config)[![Packagist](https://camo.githubusercontent.com/0f3fb0b4a057c637df5c210f794748cf3c373e52a9c0e08fd3899462f79a2d24/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7269696d752f7068702d63732d66697865722d636f6e6669672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/riimu/php-cs-fixer-config)

Usage
-----

[](#usage)

To add these rules into your project, you should first include them via composer as dev dependency using

```
$ composer require --dev riimu/php-cs-fixer-config

```

Then you should create a file named `.php_cs` in your project root directory that simply contains

```
