kakuilan/swaggervel
最新稳定版本:0.0.4
Composer 安装命令:
composer require kakuilan/swaggervel
包简介
A great way to integrate Swagger into Laravel
README 文档
README
appointer/swaggervel backup
Installation
- Execute
composer require kakuilan/swaggervel:dev-mainwithin your laravel root directory - Add
Appointer\Swaggervel\SwaggervelServiceProvider::classto your providers array inapp/config/app.phpabove your route provider, to avoid any catch-all routes - Run
php artisan vendor:publish --tag=publicto push swagger-ui to your public folder (can be found in public/vendor/swaggervel). - Optionally run
php artisan vendor:publish --tag=configto push the swaggervel default config into your application's config directory. - Optionally run
php artisan vendor:publish --tag=viewsto push the swaggervel index view file intoresources/views/vendor/swaggervel.
Examples (when using the default configuration)
- www.example.com/docs <- You may find your automatically generated Swagger .json-File there
- www.example.com/api/docs <- Access to your Swagger UI
Options
All options are well commented within the swaggervel.php config file.
How to Use Swagger-php
The actual Swagger spec is beyond the scope of this package. All Swaggervel does is package up swagger-php and swagger-ui in a Laravel-friendly fashion, and tries to make it easy to serve. For info on how to use swagger-php look here. For good examples of swagger-php in action look here.
统计信息
- 总下载量: 2.64k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-10-23