latrell/swagger

Swagger for Laravel 5
63,316 41
Install
composer require latrell/swagger
Latest Version:1.0.2
PHP:>=7.0.0
Laravel:5
Older releases:4
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

hyperbolaa/ylpay

银联pos通SDK在Laravel5.2封装包。

129 2
wotz/laravel-swagger-ui

Add Swagger UI to a Laravel application.

549,783 281
latrell/geohash

This package geohash for Laravel 5 support.

28,887 11
latrell/lock

支持Redis与Memcached的并发锁。

22,919 32
latrell/qqwry

纯真 IP 库 Laravel 版 。

4,734 26

Version History

Version Released PHP Laravel License
1.0.2 >=7.0.0 5.* MIT
1.0.1 >=5.4.0 5.* MIT
1.0.0 >=5.4.0 5.* MIT
0.3 >=5.4.0 4.2.* MIT
0.2 >=5.4.0 4.2.* MIT