programmeruz/laravel-creator
Composer 安装命令:
composer require programmeruz/laravel-creator
包简介
Generate Model, Migration, Seeder, Factory, Resource, Controller, SWAGGER using simple form
README 文档
README
Laravel Creator is a package designed to simplify the code generation process in Laravel projects. With an intuitive UI at the /creator endpoint, you can easily generate migrations, seeders, models, controllers, and API resources with built-in Swagger documentation support.
Installation
Install via Composer:
Begin by pulling in the package using Composer:
composer require programmeruz/laravel-creator
Registering the Service Provider (For Laravel versions below 5.5):
After installation, if you are running a version of Laravel less than 5.5, you'll need to register the service provider. Open config/app.php and add the service provider to the providers array:
'providers' => [
// ...
Programmeruz\LaravelCreator\LaravelCreatorServiceProvider::class,
],
Note: Laravel 5.5 and above uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.
Accessing the Creator UI:
Once the package is properly installed and the service provider is registered, navigate to:
your-laravel-app-url/creator
Here, you'll find the intuitive UI to guide you through the code generation process.
Using Swagger Documentation
In order to use Swagger, don't forget to add @OA\Info in your main Controller class
/**
* @OA\Info(
* version="1.0",
* title="Example for response examples value"
* )
*/
class Controller extends BaseController
{
use AuthorizesRequests, ValidatesRequests;
}
To utilize the Swagger feature, after setting up your routes and controllers with Laravel Creator, run the following command:
php artisan l5-swagger:generate
This will produce the necessary Swagger configuration and UI, which you can typically access at:
your-laravel-app-url/api/documentation
Final Thoughts
Laravel Creator is crafted to enhance your development workflow, ensuring you spend less time on boilerplate code and more on building your application's unique features. Should you encounter any issues or require support, please raise an issue on our GitHub repository.
Happy coding!
This documentation provides a structured introduction to your package, guiding users through the installation and basic usage processes. You can further expand it by including sections on advanced features, contribution guidelines, or any other information you find relevant.
🔗 Links
programmeruz/laravel-creator 适用场景与选型建议
programmeruz/laravel-creator 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 33 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 08 月 09 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 programmeruz/laravel-creator 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 programmeruz/laravel-creator 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 33
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2023-08-09