Skip to content

BombenProdukt/php-cs-fixer-config

Repository files navigation

About PHP-CS-Fixer Configuration

This project was created by, and is maintained by Brian Faust, and is a package that provides a configuration factory and multiple presets for friendsofphp/php-cs-fixer. Be sure to browse through the changelog, code of conduct, contribution guidelines, license, and security policy.

Installation

Note This package requires PHP 8.2 or later, and it supports Laravel 10 or later.

To get the latest version, simply require the project using Composer:

$ composer require bombenprodukt/php-cs-fixer-config

Usage

// .php-cs-fixer.php
<?php

use BombenProdukt\PhpCsFixer\ConfigurationFactory;
use BombenProdukt\PhpCsFixer\Preset\Standard;

$header = <<<EOF
Copyright (c) 2023 BombenProdukt

For the full copyright and license information, please view
the LICENSE file that was distributed with this source code.
EOF;

$config = ConfigurationFactory::fromPreset(new Standard($header));
$config->getFinder()->in(__DIR__);

return $config;

About

Provides a configuration factory and multiple rule sets for friendsofphp/php-cs-fixer.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages