PHP code example of ptx / lumen-yaml-swagger
1. Go to this page and download the library: Download ptx/lumen-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/ */
ptx / lumen-yaml-swagger example snippets
$app->withFacades();
$app->configure('swagger-lume');
$app->register(\PtxDev\Swagger\SwaggerLumenServiceProvider::class);
/**
* @SWG\Swagger(
* @SWG\Info(
* title="My first swagger documented API",
* version="1.0.0"
* )
* )
*/