定制 ladumor/laravel-swagger 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ladumor/laravel-swagger

最新稳定版本:1.0.0

Composer 安装命令:

composer require ladumor/laravel-swagger

包简介

this package used for the setup swagger docs for APIs.

README 文档

README

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

统计信息

  • 总下载量: 3.03k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 23
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 23
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-11-06