Package Data | |
---|---|
Maintainer Username: | raygu0101 |
Maintainer Contact: | raygu0101@gmail.com (RayGu) |
Package Create Date: | 2018-06-23 |
Package Last Update: | 2018-08-30 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-15 15:11:07 |
Package Statistics | |
---|---|
Total Downloads: | 13 |
Monthly Downloads: | 4 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 1 |
Total Open Issues: | 0 |
Swagger 2.0 for Lumen 5
对 SwaggerLume 进行封装。 使其支持YAML文档。
composer require --dev yunhanphp/lumen-dev-yaml-swagger
bootstrap/app.php
$app->withFacades();
$app->configure('swagger-lume');
$app->register(\YunhanDev\Swagger\SwaggerLumenServiceProvider::class);
config/swagger-lume.php
:
[
"paths" => [
"yamlAnnotations" => [base_path('docs')] // 默认目录
]
]