fligno/boilerplate-generator
Composer 安装命令:
composer require fligno/boilerplate-generator
包简介
Boilerplate Generator for Laravel and Laravel Packages
README 文档
README
This is where your description should go. Take a look at contributing.md to see a to do list.
Installation
Via Composer
Note: If you haven't set up your Gitlab Personal Access Token for Composer yet, please follow this instruction.
$ composer config repositories.git.fligno.com/440 '{"type": "composer", "url": "https://git.fligno.com/api/v4/group/440/-/packages/composer/packages.json"}'
$ composer req fligno/boilerplate-generator:^1.0.0 --dev
Usage
List of fligno commands
| Name | Command | Description |
|---|---|---|
| Package List | fligno:package:list |
List all locally installed packages. |
| Package Create | fligno:package:create |
Create a new Laravel package. |
| Package Remove | fligno:package:remove |
Remove a Laravel package. |
| Package Enable | fligno:package:enable |
Enable a Laravel package. |
| Package Disable | fligno:package:disable |
Disable a Laravel package. |
| Package Clone | fligno:package:clone |
Clone a Laravel package using Git. |
| Package Publish | fligno:package:publish |
Publish a Laravel package using Git. |
| Test | fligno:test |
Run the application and package tests. |
| Start | fligno:start |
Create a model with migration, API controller, request, event, and resource files. |
List of gen commands
| File Type | Command | Laravel Counterprt | Description |
|---|---|---|---|
| Cast | gen:cast |
make:cast |
Create a new custom Eloquent cast class in Laravel or in a specific package. |
| Channel | gen:channel |
make:channel |
Create a new channel class in Laravel or in a specific package. |
| Class | gen:channel |
Create a new PHP class in Laravel or in a specific package. | |
| Command | gen:command |
make:command |
Create a new Artisan command in Laravel or in a specific package. |
| Component | gen:component |
make:component |
Create a new view component class in Laravel or in a specific package. |
| Container | gen:container |
Create a new service container in Laravel or in a specific package. | |
| Controller | gen:controller |
make:controller |
Create a new controller class in Laravel or in a specific package. |
| Docs | gen:docs |
make:controller |
Generate Scribe documentations. |
| Event | gen:event |
make:event |
Create a new event class in Laravel or in a specific package. |
| Exception | gen:exception |
make:exception |
Create a new custom exception class in Laravel or in a specific package. |
| Facade | gen:facade |
Create a new facade in Laravel or in a specific package. | |
| Factory | gen:factory |
make:factory |
Create a new model factory in Laravel or in a specific package. |
| Gitlab CI | gen:gitlab |
Create a Gitlab CI YML file in a specific package. | |
| Helper | gen:helper |
Create a new helper file in Laravel or in a specific package. | |
| Interface | gen:interface |
Create a new interface in Laravel or in a specific package. | |
| Job | gen:job |
make:job |
Create a new job class in Laravel or in a specific package. |
| Interface | gen:interface |
Create a new interface in Laravel or in a specific package. | |
| Listener | gen:listener |
make:listener |
Create a new event listener class in Laravel or in a specific package. |
gen:mail |
make:mail |
Create a new email class in Laravel or in a specific package. | |
| Middleware | gen:middleware |
make:middleware |
Create a new middleware class in Laravel or in a specific package. |
| Migration | gen:migration |
make:migration |
Create a new migration file in Laravel or in a specific package. |
| Model | gen:model |
make:model |
Create a new Eloquent model class in Laravel or in a specific package. |
| Notification | gen:notification |
make:notification |
Create a new notification class in Laravel or in a specific package. |
| Observer | gen:observer |
make:observer |
Create a new observer class in Laravel or in a specific package. |
| Policy | gen:policy |
make:policy |
Create a new policy class in Laravel or in a specific package. |
| Provider | gen:provider |
make:provider |
Create a new service provider class in Laravel or in a specific package. |
| Repository | gen:repository |
Create a new repository class in Laravel or in a specific package. | |
| Request | gen:request |
make:request |
Create a new form request class in Laravel or in a specific package. |
| Resource | gen:resource |
make:resource |
Create a new resource file in Laravel or in a specific package. |
| Routes | gen:routes |
Create web and/or api route files in a specific package. | |
| Rule | gen:rule |
make:rule |
Create a new validation rule in Laravel or in a specific package. |
| Seeder | gen:seeder |
make:seeder |
Create a new seeder class in Laravel or in a specific package. |
| Test | gen:test |
make:test |
Create a new test class in Laravel or in a specific package. |
| Trait | gen:trait |
Create a new interface in Laravel or in a specific package. |
Change log
Please see the changelog for more information on what has changed recently.
Testing
There would be 2 Packages inside your Laravel Project:
boilerplate-generator and <dummy package you will create>.
-
Create a Dummy Package for Testing:
$ php artisan fligno:package:create Dummy Package
-
Proceed to Testing
$ php artisan fligno:test
or
$ php artisan fligno:test -p
It would probably be the same as below
Choose target package [Laravel]: [0] Laravel [1] dummy/package [2] fligno/boilerplate-generator
Choose the
dummy/packageyou created earlier by entering its corresponding number. In this case,[1]. -
Wait for the Test to Finish. To further verify, your
dummy/packagePackage should contain "Random"-named Files includingClass,Event,Route, etc. -
Upon successful testing, you can now remove the Dummy Package you create by using
$ php artisan fligno:package:remove Dummy Package
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email jamescarlo.luchavez@fligno.com instead of using the issue tracker.
Credits
License
MIT. Please see the license file for more information.
fligno/boilerplate-generator 适用场景与选型建议
fligno/boilerplate-generator 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 309 次下载、GitHub Stars 达 0, 最近一次更新时间为 2022 年 08 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「BoilerplateGenerator」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 fligno/boilerplate-generator 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 fligno/boilerplate-generator 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 fligno/boilerplate-generator 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A boilerplate generator for building packages and implementing DDD on Laravel 8|9|10.
Alfabank REST API integration
Laravel package for Accurate Online API integration.
Shared RCX Laravel DataTables UI and configuration helpers.
Boot a Laravel project on any machine with one command: app:serve installs missing tools (PHP, Node, Composer, Herd, Docker), creates .env, sets up the database, runs migrations, builds assets, starts a queue worker and serves via Herd, Sail or artisan serve; app:down cleanly stops everything it sta
Branded, diagnostic error pages (500, 403, 404, 419, 503) for Filament — native Filament UI, dark mode and translations out of the box.
统计信息
- 总下载量: 309
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 12
- 依赖项目数: 1
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2022-08-21