PHP code example of diegoborgs / natural-swagger-php
1. Go to this page and download the library: Download diegoborgs/natural-swagger-php 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/ */
diegoborgs / natural-swagger-php example snippets
use Diegoborgs\NaturalSwaggerPhp\OpenApiRenderFactory;
use Diegoborgs\NaturalSwaggerPhp\Renders\RenderOpenApi;
$render = OpenApiRenderFactory::get();
$render->render(RenderOpenApi::HTML, ['base_path' => '/path/to/annotations']);