litalico-engineering/eg-r2
最新稳定版本:1.3.1
Composer 安装命令:
composer require litalico-engineering/eg-r2
包简介
Easy request validation and route generation from open API specifications (for Laravel)
README 文档
README
Easy request validation and route generation from open API specifications (for Laravel)
eg-r2 means eg in the sense that it Easy(eg) the two R(r2)s Request validation and Routing generation.
Installation
- composer install
composer require litalico-engineering/eg-r2 - vendor publish
php artisan vendor:publish --provider="Litalico\EgR2\Providers\GenerateRouteServiceProvider"
Usage
- Add swagger-php attributes to the classes (Controller and FormRequest) corresponding to each API to create an OpenAPI document.
see. https://zircote.github.io/swagger-php/guide/attributes.html
Important
No need to define routing for Controller methods
- Configure the
config/eg-r2.php
Describe the namespace of the Controller that describes the OpenAPI Attribute - Generate Route Files
php artisan eg-r2:generate-route
统计信息
- 总下载量: 9.76k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 11
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-07-16