ensi/laravel-serve-stoplight
最新稳定版本:0.2.4
Composer 安装命令:
composer require ensi/laravel-serve-stoplight
包简介
Laravel serve stoplight
README 文档
README
The package allows you to output the Stoplight UI by configuring only the paths to your openapi3 configs
Based on stoplight/elements
Installation
You can install the package via composer:
composer require ensi/laravel-serve-stoplight
Publish config file like this:
php artisan vendor:publish --provider="Ensi\LaravelServeStoplight\ServeStoplightServiceProvider"
Configure config/serve-stoplight.php
Version Compatibility
| Laravel Serve Stoplight | Laravel | PHP | Stoplight |
|---|---|---|---|
| ^0.1.0 | ^8.0 || ^9.0 | ^8.0 | 7.7.2 |
| ^0.1.5 | ^8.0 || ^9.0 || ^10.0 | ^8.0 | 7.7.2 |
| ^0.1.7 | ^8.0 || ^9.0 || ^10.0 || ^11.0 | ^8.0 | 7.7.2 |
| ^0.2.0 | ^9.0 || ^10.0 || ^11.0 | ^8.1 | 8.1.3 |
| ^0.2.4 | ^9.0 || ^10.0 || ^11.0 || ^12.0 | ^8.1 | 8.1.3 |
Basic usage
By default, the v1 specification is available at docs/oas (the same full path as docs/oas/v1).
If you need to open a specification of another version, use the docs/os/{version} path, for example, docs/os/v2
Contributing
Please see CONTRIBUTING for details.
Update stoplight
For update stoplight:
- update
stoplight-resources/web-components.min.jsfrom https://unpkg.com/@stoplight/elements/web-components.min.js - update
stoplight-resources/styles.min.cssfrom https://unpkg.com/@stoplight/elements/styles.min.css - update current Stoplight version on
Version Compatibility
Testing
- composer install
- composer test
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 52.88k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-11-18