Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Phpcsfixer Configs Php Laravel Package

drupol/phpcsfixer-configs-php

Ready-made PHP-CS-Fixer config objects for common standards and PHP versions (PSR-12, PHP 5.6–7.3). Implements ConfigInterface and supports combining rules via withRulesFrom() for easy reuse across projects.

View on GitHub
Deep Wiki
Context7

Latest Stable Version GitHub stars Total Downloads GitHub Workflow Status License Donate! Donate!

PHP-CS-Fixer Configurations

Description

This package provides a set PHP-Cs-Fixer configuration objects ready to be used in any project using PHP-Cs-Fixer.

Documentation

Available configuration objects:

  • drupol\PhpCsFixerConfigsPhp\Config\PSR12
  • drupol\PhpCsFixerConfigsPhp\Config\Php56
  • drupol\PhpCsFixerConfigsPhp\Config\Php7
  • drupol\PhpCsFixerConfigsPhp\Config\Php71
  • drupol\PhpCsFixerConfigsPhp\Config\Php72
  • drupol\PhpCsFixerConfigsPhp\Config\Php73

Each configuration object is an object implementing PhpCsFixer/ConfigInterface.

It provides a default configuration, mandatory to configure PHP CS Fixer.

It implements the method(s):

    public function withRulesFrom(...$configs);

Where the $configs parameters must implements PhpCsFixer/ConfigInterface.

Requirements

  • PHP >= 7.4

Installation

composer require --dev drupol/phpcsfixer-configs-php

Usage

See the PHP CS Fixer documentation on how to use the configuration object.

Code quality, tests and benchmarks

Every time changes are introduced into the library, Github Actions run the tests and the benchmarks.

The library has tests written with PHPSpec. Feel free to check them out in the spec directory. Run composer phpspec to trigger the tests.

Before each commit some inspections are executed with GrumPHP, run ./vendor/bin/grumphp run to check manually.

PHPInfection is used to ensure that your code is properly tested, run composer infection to test your code.

Contributing

Feel free to contribute to this library by sending Github pull requests. I'm quite reactive :-)

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui