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

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

zvive/fixer
===========

PHP CS Fixer w/ additional fixers based off of permafrost-dev/phpcsfixer-preset

v10.0(3y ago)140313MITPHPPHP ^8.0

Since Jan 23Pushed 3y ago1 watchersCompare

[ Source](https://github.com/zvive/fixer)[ Packagist](https://packagist.org/packages/zvive/fixer)[ RSS](/packages/zvive-fixer/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (14)Versions (14)Used By (3)

phpcsfixer-preset

[![version](https://camo.githubusercontent.com/59f54db59c0e360ce5205a2d3d1b708ea2d4c8aa2e58068b9f6a4c8eaac262da/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a766976652f6669786572)](https://camo.githubusercontent.com/59f54db59c0e360ce5205a2d3d1b708ea2d4c8aa2e58068b9f6a4c8eaac262da/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a766976652f6669786572) [![license](https://camo.githubusercontent.com/42d274f4641d7a2e053552d88a14adaff709d6f8bdd77a739612cb6bad785614/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7a766976652f6669786572)](https://camo.githubusercontent.com/42d274f4641d7a2e053552d88a14adaff709d6f8bdd77a739612cb6bad785614/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7a766976652f6669786572) [![downloads](https://camo.githubusercontent.com/c54eae47545873af6eb7c1be1930ffca65ddb474191c57da355ca2c6611cfe28/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7a766976652f6669786572)](https://camo.githubusercontent.com/c54eae47545873af6eb7c1be1930ffca65ddb474191c57da355ca2c6611cfe28/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7a766976652f6669786572) ![Run Tests]() ![Coverage Status]()

---

This package allows you to use the same [php-cs-fixer](https://github.com/FriendsOfPhp/PHP-CS-Fixer) formatting rules across all of your projects without copy-and-pasting configuration files. There's also a quick setup script to automatically generate a configuration file for your project structure and preferred formatting preset.

`zvive/fixer` provides several opinionated `php-cs-fixer` configuration choices as well as pre-configured `Finder` classes for common project formats and use cases.

Supported PHP versions: `8.1`.

The original concept for this package came from this excellent article on [sharing php-cs-fixer configurations across projects](https://laravel-news.com/sharing-php-cs-fixer-rules-across-projects-and-teams) written by [Tim Mcdonald](https://timacdonald.me/).

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

[](#installation)

`composer require zvive/fixer --dev`

---

Example `.php-cs-fixer.dist.php` files
--------------------------------------

[](#example-php-cs-fixerdistphp-files)

This example uses the Laravel project finder and the Default Ruleset:

```
