flipbox/lumen-generator
Composer 安装命令:
composer require flipbox/lumen-generator
包简介
A Lumen Generator You Are Missing
README 文档
README
Do you miss any Laravel code generator on your Lumen project? If yes, then you're in the right place.
Installation
To use some generators command in Lumen (just like you do in Laravel), you need to add this package:
composer require flipbox/lumen-generator
Configuration
Inside your bootstrap/app.php file, add:
$app->register(Flipbox\LumenGenerator\LumenGeneratorServiceProvider::class);
Available Command
key:generate Set the application key
make:cast Create a new custom Eloquent cast class
make:channel Create a new channel class
make:command Create a new Artisan command
make:controller Create a new controller class
make:event Create a new event class
make:exception Create a new custom exception class
make:factory Create a new model factory
make:job Create a new job class
make:listener Create a new event listener class
make:mail Create a new email class
make:middleware Create a new middleware class
make:migration Create a new migration file
make:model Create a new Eloquent model class
make:notification Create a new notification class
make:observer Create a new observer class
make:pipe Create a new pipe class
make:policy Create a new policy class
make:provider Create a new service provider class
make:request Create a new form request class
make:resource Create a new resource
make:rule Create a new rule
make:seeder Create a new seeder class
make:test Create a new test class
notifications:table Create a migration for the notifications table
schema:dump Dump the given database schema
Additional Useful Command
clear-compiled Remove the compiled class file
serve Serve the application on the PHP development server
tinker Interact with your application
optimize Optimize the framework for better performance
route:list Display all registered routes.
NOTES
route:listcommand has been added via appzcoder/lumen-route-list package.
Tinker include Argument Usage
php artisan tinker path/to/tinker/script.php
script.php example:
$environment = app()->environment();
$output = new Symfony\Component\Console\Output\ConsoleOutput();
$output->writeln("<info>Hello the app environment is `{$environment}`</info>");
$output->writeln("<comment>Did something</comment>");
$output->writeln("<error>Did something bad</error>");
flipbox/lumen-generator 适用场景与选型建议
flipbox/lumen-generator 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.93M 次下载、GitHub Stars 达 811, 最近一次更新时间为 2016 年 10 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 flipbox/lumen-generator 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 flipbox/lumen-generator 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 2.93M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 828
- 点击次数: 13
- 依赖项目数: 24
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-10-20