bombenprodukt / php-cs-fixer-config
Provides a configuration factory and multiple rule sets for friendsofphp/php-cs-fixer.
Installs: 15 574
Dependents: 158
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 3
Requires
- php: ^8.2
- illuminate/contracts: ^11.0
Requires (Dev)
- ergebnis/composer-normalize: ^2.2
- friendsofphp/php-cs-fixer: ^3.15
- infection/infection: ^0.27.0
- nunomaduro/collision: ^8.0
- nunomaduro/larastan: ^2.0
- orchestra/testbench: ^9.0
- pestphp/pest: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- pestphp/pest-plugin-watch: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpstan/phpstan-strict-rules: ^1.5
- spatie/laravel-ray: ^1.2
This package is auto-updated.
Last update: 2024-04-20 06:55:30 UTC
README
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;