trannguyenhan/autogencontroller
Composer 安装命令:
composer require trannguyenhan/autogencontroller
包简介
Auto gen controller code
README 文档
README
For each person and each project will bring a different code structure, each person likes and has their own style, this project does not help you to create really good controllers, but it can be a foundation. so you can create your own better versions by making changes in the templates folder
Configuration
Install via composer (packagist):
composer require trannguyenhan/autogencontroller
Usage
Gen controller and repository with command:
php artisan tnhgen:controller
If your controller extends orther Class without Controller or your repository extends other Class without BaseRepository add parameter when gen controller:
php artisan tnhgen:controller --basecontroller YourController --baserepository YourRepository
If you want assign model corresponding with controller use under parameter:
php artisan tnhgen:controller --model YourModel
If controller within a namespace, add parameter:
php artisan tnhgen:controller --namespace YourNamespace
and of course, you can combine all the above parameters at once. If you want gen model from MySQL database, PostgreSQL and SQLite, you can follow repository https://github.com/reliese/laravel
trannguyenhan/autogencontroller 适用场景与选型建议
trannguyenhan/autogencontroller 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 8 次下载、GitHub Stars 达 2, 最近一次更新时间为 2022 年 04 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 trannguyenhan/autogencontroller 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 trannguyenhan/autogencontroller 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-04-16