andrey-helldar/laravel-swagger

Documentation generation for Swagger without OpenAPI

dev-master 2022-10-07 23:08 UTC

This package is auto-updated.

Last update: 2022-11-07 23:23:01 UTC


README

Documentation generation for Swagger without OpenAPI

Laravel Swagger

Installation

Note: In order for the composer to be able to install an unstable package, in the option "minimum-stability" of the file "composer.json" the value must be "dev".

Laravel

  1. Execute the command:
composer require andrey-helldar/laravel-swagger:dev-master --dev
  1. Use the swagger:generate command to generate documentation.

Lumen

  1. Execute the command:
composer require andrey-helldar/laravel-swagger:dev-master --dev
  1. Copy the configuration file to the config folder.

  2. Register the configuration file in bootstrap/app.php:

$app->configure('laravel-swagger');
  1. Register the service provider in bootstrap/app.php:
$app->register(Helldar\LaravelSwagger\ServiceProvider::class);
  1. Use the swagger:generate command to generate documentation.