jessekoska/swagger-ui-lumen

Swagger UI in Lumen 5

dev-master 2016-08-17 19:27 UTC

This package is not auto-updated.

Last update: 2024-05-07 21:01:11 UTC


README

Swagger UI for Lumen 5

Martin Abelson Sahlen style of swagger-ui implemented.

Installation

    composer require "jessekoska/swagger-ui-lumen dev-master"
  • Open your bootstrap/app.php file and:

uncomment this line (around line 26) in Create The Application section:

     $app->withFacades();

add this line before Register Container Bindings section:

     $app->configure('swagger-ui-lumen');

add this line in Register Service Providers section:

    $app->register(SwaggerUILumen\ServiceProvider::class);

Configuration

  • Run php artisan swagger-ui-lumen:publish-config to publish configs (config/swagger-ui-lumen.php)
  • Make configuration changes if needed
  • Run php artisan swagger-ui-lumen:publish to publish