ladumor/laravel-swagger

this package used for the setup swagger docs for APIs.
6,972 23
Install
composer require ladumor/laravel-swagger
Latest Version:1.0.0
PHP:>=5.6
License:MIT
Last Updated:Nov 8, 2021
Links: GitHub  ·  Packagist
Maintainer: ladumor

Latest Stable Version Daily Downloads Monthly Downloads Total Downloads License PHP Version Require

Laravel Swagger

Installation

Install the package by the following command,

composer require ladumor/laravel-swagger

Add Provider

Add the provider to your config/app.php into provider section if using lower version of laravel,

Ladumor\LaravelSwagger\LaravelSwaggerServiceProvider::class,

Add Facade

Add the Facade to your config/app.php into aliases section,

'LaravelSwagger' => \Ladumor\LaravelSwagger\LaravelSwaggerServiceProvider::class,

Generate Swagger file and publish the Assets. like, view

Run the following command to publish config file,

php artisan laravel-swagger:generate

Add route in web.php file

Route::get('/swagger-docs', function () {
    return view('swagger.index');
});

Other Packages

Learn Laravel Packages here

License

The MIT License (MIT). Please see License File for more information

Related Packages

oriceon/toastr-5-laravel

Easy toastr notifications for Laravel 5

503,999 79
php-tmdb/laravel

Laravel Package for TMDB ( The Movie Database ) API. Provides easy access to the...

53,315 160
oriceon/oauth-5-laravel

OAuth Service Provider for Laravel 5

1,671,889 174
artdarek/oauth-4-laravel

OAuth Service Provider for Laravel 4

523,362 677
narutimateum/toastr-5.2-laravel

toastr.js for Laravel 5.2 easy notification like growl for example

37,567 13