bgaze/laravel-php-cs-fixer
Composer 安装命令:
composer require bgaze/laravel-php-cs-fixer
包简介
A PHP-CS-Fixer bridge for use via Artisan CLI on Laravel 5.5+
README 文档
README
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\Configand will be published into a.php_cs.distfile 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' ]);
统计信息
- 总下载量: 4.2k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 12
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-05-14