jessekoska / swagger-ui-lumen by jessekoska

Swagger UI in Lumen 5
448
1
1
Package Data
Maintainer Username: jessekoska
Maintainer Contact: jessekoska@gmail.com (Jesse Koska)
Package Create Date: 2016-08-10
Package Last Update: 2016-08-17
Language: PHP
License: MIT
Last Refreshed: 2024-11-19 03:13:33
Package Statistics
Total Downloads: 448
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 1
Total Watchers: 1
Total Forks: 0
Total Open Issues: 0

SwaggerUILumen

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