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

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

jascha030/php-cs-fixer-config
=============================

Personal default configurations for php-cs-fixer.

1.0.0(1y ago)027MITPHPPHP ^7.4 || ^8.0

Since Nov 12Pushed 1y ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (2)Used By (0)

WordPress Php-cs-fixer Config
=============================

[](#wordpress-php-cs-fixer-config)

WP Back-end default configurations for php-cs-fixer.

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

[](#installation)

```
composer require --dev jascha030/php-cs-fixer-config
```

Usage
-----

[](#usage)

The `Jascha030\PhpCsFixer\Config` class extends `PhpCsFixer\Config` class and automatically sets our default php-cs-fixer ruleset. It allows you to set the language version and header comment in a more readable way.

This means any other method from the `PhpCsFixer\Config` class can be used as well.

### Language Version

[](#language-version)

The `Jascha030\PhpCsFixer\Config` class contains constants for the available PHP language versions.

```
    public const SUPPORTED_VERSIONS = [
        self::PHP_74, // 70400
        self::PHP_80, // 80000
        self::PHP_81, // 80100
        self::PHP_82, // 80200 (Currently the default value)
        self::PHP_83, // 80300
    ];
```

### Full Example

[](#full-example)

```
