PHP code example of iwanli / laravel5-swagger

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

    

iwanli / laravel5-swagger example snippets



return [
    /*
      |--------------------------------------------------------------------------
      | 多语言配置
      | 可选语言:en、es、fr、it、ja、pl、pt、ru、tr、zh-cn
      |--------------------------------------------------------------------------
    */
    'lang' => 'zh-cn',
    /*
      |--------------------------------------------------------------------------
      | 注释文档存放位置
      |--------------------------------------------------------------------------
    */
    'doc-dir' => storage_path() . '/docs',
    /*
      |--------------------------------------------------------------------------
      | 文档路由
      |--------------------------------------------------------------------------
    */
    'doc-route' => 'docs',
    /*
      |--------------------------------------------------------------------------
      | UI界面路由
      |--------------------------------------------------------------------------
    */
    'api-docs-route' => 'api/docs',
    /*
      |--------------------------------------------------------------------------
      | 监听目录
      |--------------------------------------------------------------------------
    */
    "app-dir" => "app",

	......