imo-tikuwa/laravel-make-with-format
最新稳定版本:v0.3.0
Composer 安装命令:
composer require imo-tikuwa/laravel-make-with-format
包简介
Running the make:●● command will get Pint and laravel-ide-helper working (if installed).
README 文档
README
Provides a listener to prevent forgetting to run Laravel Pint and IDE Helper after executing the make:●● command.
Installation
You can install the package via composer:
composer require --dev imo-tikuwa/laravel-make-with-format
You can publish the config file with:
php artisan vendor:publish --tag="make-with-format-config"
Optional Dependencies
This package will use the following tools if they are installed in your project:
- Laravel Pint (for code formatting)
- IDE Helper Generator for Laravel (for improved IDE support)
If you want to take advantage of these features, you can install them manually:
composer require --dev laravel/pint composer require --dev barryvdh/laravel-ide-helper
For detailed installation and setup instructions, please refer to the documentation of each package:
- Laravel Pint: https://github.com/laravel/pint
- IDE Helper Generator: https://github.com/barryvdh/laravel-ide-helper
Usage
After executing the make:●● command, Pint and laravel-ide-helper will work.
$ php artisan make:migration create_examples_table
INFO Migration [database/migrations/2025_02_23_072246_create_examples_table.php] created successfully.
Running pint on database/migrations
✓...
───────────────────────────────────────────────────────────────────── PSR 12
FIXED ..................................... 4 files, 1 style issue fixed
✓ database/migrations/2025_02_23_072246_create_examples_table.php new_with_…
$ php artisan make:model --test Example
INFO Test [tests/Feature/Models/ExampleTest.php] created successfully.
INFO Model [app/Models/Example.php] created successfully.
Running ide-helper:models on app/Models
Written new phpDocBlock to /app/Models/Example.php
Written new phpDocBlock to /app/Models/User.php
Running pint on app/Models
✓✓
───────────────────────────────────────────────────────────────────── PSR 12
FIXED .................................... 2 files, 2 style issues fixed
✓ app/Models/Example.php declare_strict_types, blank_line_after_opening_tag…
✓ app/Models/User.php no_trailing_whitespace_in_comment
Running pint on tests/Feature/Models
✓
───────────────────────────────────────────────────────────────────── PSR 12
FIXED ...................................... 1 file, 1 style issue fixed
✓ tests/Feature/Models/ExampleTest.php declare_strict_types, blank_line_aft…
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-02-23