New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

ladumor/laravel-swagger

this package used for the setup swagger docs for APIs.
7,541 23
Install
composer require ladumor/laravel-swagger
Latest Version:1.0.0
PHP:>=5.6
Laravel:5 – 8
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

valorin/random

Random is a simple helper package designed to make it easy to generate a range o...

423,305 234
php
cline/variable-keys

Laravel Blueprint macros for variable primary key and morph types

23,466 0
php
cline/struct

Lean, attribute-driven Laravel data objects with explicit validation and Eloquen...

18,346 0
php
cline/toggl

Advanced feature flag management with strategies, time bombs, and groups

12,635 0
php
cline/sequencer

Sequential migration and operation orchestration for Laravel

11,736 0
php

Version History

Version Released PHP Laravel License
1.0.0 >=5.6 >=5.4 MIT