PHPackages                             xenforo-ltd/xf-cs-fixer - 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. xenforo-ltd/xf-cs-fixer

ActiveLibrary

xenforo-ltd/xf-cs-fixer
=======================

A PHP Coding Standards Fixer configuration for XenForo

v1.2.0(3mo ago)64.2k↓50%MITPHPPHP ^7.4 || ^8.0CI passing

Since Jul 11Pushed 3mo ago5 watchersCompare

[ Source](https://github.com/xenforo-ltd/xf-cs-fixer)[ Packagist](https://packagist.org/packages/xenforo-ltd/xf-cs-fixer)[ Docs](https://github.com/xenforo-ltd/xf-cs-fixer)[ RSS](/packages/xenforo-ltd-xf-cs-fixer/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (5)Versions (7)Used By (0)

XenForo Coding Standards Fixer
==============================

[](#xenforo-coding-standards-fixer)

[![XenForo](https://camo.githubusercontent.com/ca077c244e3b5ba1705c3aaad76ac16910d6402365ac37f06393677e2dd223ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f58656e466f726f2d253233304635373841)](https://xenforo.com)[![License](https://camo.githubusercontent.com/c71c6ddbe9209f6b0ede8c34368d91ff1d658de82d07bca8f5e7bbef5a6df9bf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f78656e666f726f2d6c74642f78662d63732d66697865723f6c6162656c3d6c6963656e7365)](https://packagist.org/packages/xenforo-ltd/xf-cs-fixer)[![Version](https://camo.githubusercontent.com/5de4494fc2d38646fc78a39a423d174df24f13d6314b2a443643f5e00238dd65/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f78656e666f726f2d6c74642f78662d63732d66697865723f6c6162656c3d76657273696f6e)](https://packagist.org/packages/xenforo-ltd/xf-cs-fixer)[![Status](https://camo.githubusercontent.com/ffdc23ada4a94443b2ca748e12e6b285125cd1406a8b2513a1820b49bdd0c994/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636865636b2d72756e732f78656e666f726f2d6c74642f78662d63732d66697865722f6d61696e3f6c6162656c3d737461747573)](https://github.com/xenforo-ltd/xf-cs-fixer/actions)

A [PHP Coding Standards Fixer](https://cs.symfony.com) configuration for [XenForo](https://xenforo.com).

This library provides a configuration helper and a handful of additional rules which supplement the built-in [PER-CS](https://cs.symfony.com/doc/ruleSets/PER-CS.html)rule set to automatically format code according to the XenForo code style.

Installing
----------

[](#installing)

To use our configuration or rules, install them with [Composer](https://getcomposer.org):

```
composer require --dev xenforo-ltd/xf-cs-fixer

```

Usage
-----

[](#usage)

Create a `.php-cs-fixer.dist.php` configuration file in your project directory:

```
