2017 © Pedro Peláez
 

library laravel-php-cs-fixer

A PHP-CS-Fixer bridge for use via Artisan CLI on Laravel 5.5+

image

bgaze/laravel-php-cs-fixer

A PHP-CS-Fixer bridge for use via Artisan CLI on Laravel 5.5+

  • Thursday, May 31, 2018
  • by Bgaze
  • Repository
  • 1 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 86 % Grown

The README.md

PHP CS Fixer for Laravel 5.5+

GitHub license Maintenance GitHub release (latest by date) GitHub stars Packagist, (*1)

This package allows to use PHP-CS-Fixer right into Laravel 5.5+ applications to format PHP code., (*2)

Documentation

Full documentation is available at https://packages.bgaze.fr/laravel-php-cs-fixer, (*3)

Quick start

Install this package using Composer., (*4)

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

To customize the configuration, publish it:, (*5)

$ 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., (*6)

Use php-cs-fixer:fix artisan command to fix files in your application:, (*7)

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

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

// 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'
]);

The Versions

31/05 2018

dev-master

9999999-dev

A PHP-CS-Fixer bridge for use via Artisan CLI on Laravel 5.5+

  Sources   Download

MIT

The Requires

 

by Avatar Bgaze

31/05 2018

1.0.1

1.0.1.0

A PHP-CS-Fixer bridge for use via Artisan CLI on Laravel 5.5+

  Sources   Download

MIT

The Requires

 

by Avatar Bgaze

14/05 2018

1.0.0

1.0.0.0

A PHP-CS-Fixer bridge for use via Artisan CLI on Laravel 5.5+

  Sources   Download

MIT

The Requires

 

by Avatar Bgaze