andrey-helldar / laravel-swagger
Documentation generation for Swagger without OpenAPI
Fund package maintenance!
TheDragonCode
Open Collective
Boosty
Yoomoney
Requires
- php: ^7.2.5 || ^8.0
- ext-json: *
- ext-yaml: *
- andrey-helldar/laravel-routes-core: ^2.0
- andrey-helldar/support: ^2.0
- fakerphp/faker: ^1.9.1
- illuminate/console: ^7.0 || ^8.0
- illuminate/http: ^7.0 || ^8.0
- illuminate/routing: ^7.0 || ^8.0
- illuminate/support: ^7.0 || ^8.0
- phpdocumentor/reflection-docblock: ^5.1
- symfony/yaml: ^5.0
Requires (Dev)
- mockery/mockery: ^1.4
- orchestra/testbench: ^5.0 || ^6.0
- phpunit/phpunit: ^9.4
This package is auto-updated.
Last update: 2023-03-01 00:41:07 UTC
README
Documentation generation for Swagger without OpenAPI
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
- Execute the command:
composer require andrey-helldar/laravel-swagger:dev-master --dev
- Use the
swagger:generate
command to generate documentation.
Lumen
- Execute the command:
composer require andrey-helldar/laravel-swagger:dev-master --dev
-
Copy the configuration file to the config folder.
-
Register the configuration file in
bootstrap/app.php
:
$app->configure('laravel-swagger');
- Register the service provider in
bootstrap/app.php
:
$app->register(Helldar\LaravelSwagger\ServiceProvider::class);
- Use the
swagger:generate
command to generate documentation.