PHPackages                             valantic/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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. valantic/php-cs-fixer-config

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

valantic/php-cs-fixer-config
============================

Provides a standard php-cs-fixer configuration used in projects built by valantic.

v2.2.1(7mo ago)13.5k↓44.4%1[1 issues](https://github.com/valantic/php-cs-fixer-config/issues)[1 PRs](https://github.com/valantic/php-cs-fixer-config/pulls)2MITPHPPHP ^8.1CI passing

Since Apr 13Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/valantic/php-cs-fixer-config)[ Packagist](https://packagist.org/packages/valantic/php-cs-fixer-config)[ RSS](/packages/valantic-php-cs-fixer-config/feed)WikiDiscussions main Synced 1mo ago

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

PHP-CS-Fixer Config for valantic Projects
=========================================

[](#php-cs-fixer-config-for-valantic-projects)

[![Latest Version on Packagist](https://camo.githubusercontent.com/7e9dd4f191b927ea2d5d9322f440aed8a048518cb9ef1dd4741b79fb03d91a4d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f76616c616e7469632f7068702d63732d66697865722d636f6e6669672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/valantic/php-cs-fixer-config)[![PHPUnit](https://github.com/valantic/php-cs-fixer-config/actions/workflows/phpunit.yml/badge.svg)](https://github.com/valantic/php-cs-fixer-config/actions/workflows/phpunit.yml)[![Rector](https://github.com/valantic/php-cs-fixer-config/actions/workflows/rector.yml/badge.svg)](https://github.com/valantic/php-cs-fixer-config/actions/workflows/rector.yml)[![PHP-CS-Fixer](https://github.com/valantic/php-cs-fixer-config/actions/workflows/php-cs-fixer.yml/badge.svg)](https://github.com/valantic/php-cs-fixer-config/actions/workflows/php-cs-fixer.yml)[![PHPStan](https://github.com/valantic/php-cs-fixer-config/actions/workflows/phpstan.yml/badge.svg)](https://github.com/valantic/php-cs-fixer-config/actions/workflows/phpstan.yml)[![Total Downloads](https://camo.githubusercontent.com/cf12ba459498daad0ef46e9c4a6e3e723f90c51d8d44c128e7787a741da2d3f5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f76616c616e7469632f7068702d63732d66697865722d636f6e6669672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/valantic/php-cs-fixer-config)

This package provides standard PHP-CS-Fixer configurations used in projects built by Valantic.

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

[](#installation)

```
composer require --dev valantic/php-cs-fixer-config friendsofphp/php-cs-fixer
```

> **Note:** This package requires PHP 8.1 or higher.

> **Note:** `friendsofphp/php-cs-fixer` is *not* a dependency as to allow the use of e.g. [the Composer bin plugin](https://github.com/bamarni/composer-bin-plugin).

Usage
-----

[](#usage)

Create a `.php-cs-fixer.php` or `.php-cs-fixer.dist.php` file in your project root with one of the following configurations:

### Basic Configuration

[](#basic-configuration)

```
