andrey-helldar/laravel-swagger

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Documentation generation for Swagger without OpenAPI

dev-master 2021-10-29 20:39 UTC

This package is auto-updated.

Last update: 2021-11-29 20:49:50 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.