andrey-helldar/laravel-swagger

This package is abandoned and no longer maintained. No replacement package was suggested.

Documentation generation for Swagger without OpenAPI

dev-master 2022-12-31 23:16 UTC

This package is auto-updated.

Last update: 2023-03-01 00:41:07 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.