All Projects → bgaze → laravel-php-cs-fixer

bgaze / laravel-php-cs-fixer

Licence: MIT license
A PHP-CS-Fixer bridge for Laravel 5.5+

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to laravel-php-cs-fixer

DebugStatementsFixers
Fixers set for PHP-CS-Fixer. Removes debug statements, which shouldn't be in production ever.
Stars: ✭ 22 (+57.14%)
Mutual labels:  php-cs-fixer
php-toolbox
🐳 A Docker image designed for PHP developers that care about code quality.
Stars: ✭ 18 (+28.57%)
Mutual labels:  php-cs-fixer
coding-standard
Nette Coding Standard code checker & fixer
Stars: ✭ 37 (+164.29%)
Mutual labels:  php-cs-fixer
php-cs-fixer-config
📓 Provides a configuration factory and multiple rule sets for friendsofphp/php-cs-fixer.
Stars: ✭ 29 (+107.14%)
Mutual labels:  php-cs-fixer
php-cs-fixer-config
📓 Provides a configuration for friendsofphp/php-cs-fixer, used within Refinery29.
Stars: ✭ 43 (+207.14%)
Mutual labels:  php-cs-fixer
phpcsfixer-preset
Use the same php-cs-fixer configuration across all of your projects, with presets for common project layouts (Laravel, Composer packages, etc.).
Stars: ✭ 22 (+57.14%)
Mutual labels:  php-cs-fixer
php-cs-fixer-extensions
PHP-CS-Fixer extensions and configurations
Stars: ✭ 71 (+407.14%)
Mutual labels:  php-cs-fixer
annotate-pull-request-from-checkstyle
cs2pr - Annotate a GitHub Pull Request based on a Checkstyle XML-report within your GitHub Action
Stars: ✭ 146 (+942.86%)
Mutual labels:  php-cs-fixer
sniff
Simpler PHP code sniffer built on top of PHP-CS-Fixer.
Stars: ✭ 14 (+0%)
Mutual labels:  php-cs-fixer
atom-php-cs-fixer
Run the 'PHP Coding Standards Fixer' within Atom
Stars: ✭ 30 (+114.29%)
Mutual labels:  php-cs-fixer

PHP CS Fixer for Laravel 5.5+

GitHub license Maintenance GitHub release (latest by date) GitHub stars Packagist

This package allows to use PHP-CS-Fixer right into Laravel 5.5+ applications to format PHP code.

Documentation

Full documentation is available at https://packages.bgaze.fr/laravel-php-cs-fixer

Quick start

Install this package using Composer.

$ composer require bgaze/laravel-php-cs-fixer

To customize the configuration, publish it:

$ php artisan vendor:publish --tag=bgaze-php-cs-fixer-config

Notes : Configuration returns an instance of \PhpCsFixer\Config and will be published into a .php_cs.dist file at the Laravel installation root.

Use php-cs-fixer:fix artisan command to fix files in your application:

$ php-cs-fixer:fix [options] path1 [path2 path3 ...]

Use php_cs_fixer() helper to fix files from the code:

// Quick.
php_cs_fixer('path/to/a/file/or/dir');

// Advanced.
php_cs_fixer(['path/to/file/or/dir/1', 'path/to/file/or/dir/2'], [
    '--allow-risky' => true,
    '--dry-run' => true,
    '--config' => 'path/to/a/config/file'
]);
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].