PHP code example of yunhanphp / lumen-dev-yaml-swagger
1. Go to this page and download the library: Download yunhanphp/lumen-dev-yaml-swagger library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
yunhanphp / lumen-dev-yaml-swagger example snippets
$app->withFacades();
$app->configure('swagger-lume');
$app->register(\YunhanDev\Swagger\SwaggerLumenServiceProvider::class);
[
"paths" => [
"yamlAnnotations" => [base_path('docs')] // 默认目录
]
]