PHP code example of weburnit / swagger-generator

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

    

weburnit / swagger-generator example snippets



namespace YourNamespace\Console;

use Laravel\Lumen\Console\Kernel as ConsoleKernel;
use Weburnit\Console\Commands\SwaggerModelGenerator;
/**
 * Class Kernel
 */
class Kernel extends ConsoleKernel
{

    /**
     * The Artisan commands provided by your application.
     *
     * @var array
     */
    protected $commands = [
        SwaggerModelGenerator::class,
        ...
    ];
}