latrell/swagger

Swagger for Laravel 5
63,060 41
Install
composer require latrell/swagger
Latest Version:1.0.2
PHP:>=7.0.0
License:MIT
Last Updated:Dec 6, 2018
Links: GitHub  ·  Packagist
Maintainer: Latrell

Swagger

For Laravel 4, please use the 0.3 branch!

Swagger for Laravel 5

This package combines swagger-php and swagger-ui into one Laravel-friendly package.

When you run your app in debug mode, Swagger will scan your Laravel app folder, generate swagger json files and deposit them to the docs-dir folder (default is "docs"). Files are then served by swagger-ui under the api-docs director.

Installation

composer require latrell/swagger dev-master

Update your packages with composer update or install with composer install.

Usage

To use the Swagger Service Provider, you must register the provider when bootstrapping your Laravel application. There are essentially two ways to do this.

Find the providers key in config/app.php and register the Swagger Service Provider.

    'providers' => [
        // ...
        'Latrell\Swagger\SwaggerServiceProvider',
    ]

Run php artisan vendor:publish to push swagger-ui to your public folder and publish the config file.

Config file config/latrell-swagger.php is the primary way you interact with Swagger.

Example

Related Packages

latrell/aliyun-sls-laravel

Aliyun simple log service (SLS) SDK in Laravel5 package.

725 0
latrell/alipay

支付宝SDK在Laravel5封装包。

49,307 403
jlapp/swaggervel

A great way to integrate Swagger into Laravel

954,539 484
miluo/getui-laravel

Getui PHP SDK in Laravel5 package.

38 1
latrell/rongcloud

融云服务端SDK在Laravel的封装包。

11,815 21