PHP code example of paunin / laswagger

1. Go to this page and download the library: Download paunin/laswagger 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/ */

    

paunin / laswagger example snippets


$app->register(Laswagger\Providers\LumeSwaggerServiceProvider::class);


return [
    'routes' => [
        'prefix' => 'swagger',
        'cors'   => false
    ],
    'api' => [
        'directories' => [base_path('app')],
        'excludes' => [],
        'host' => null
    ]
];