folksyfolks/l5-swagger 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

folksyfolks/l5-swagger

最新稳定版本:8.6.1

Composer 安装命令:

composer require folksyfolks/l5-swagger

包简介

OpenApi or Swagger integration to Laravel

README 文档

README

This is a fork from DarkaOnLine's L5-swagger. The version is locked to version 8.1.0.

For more information on how to use this package, please refer to the original fork.

Changes

The main change from this package is the ability to define, from the "scanOptions" config key, after which processor we want to add our custom processor.

Usage

For the base usage please refer to the original documentation.

As for the custom usage, we simpy added a config key append-processors-after, under scanOptions :

// l5-swagger.php
return [
    'default' => 'default',
    'documentations' => [
       /* ... */
    ],
    'defaults' => [ 
        /* ... */
        'scanOptions' => [
            /* ... */
            'processors' => [
                // new \App\SwaggerProcessors\SchemaQueryParameter(),
            ],

            /**
             * Define after which Open Api's processors we want to happens the custom one.
             */
            'append-processors-after' => \OpenApi\Processors\BuildPaths::class,

            /* ... */
        ],
    /* ... */
];

The default value is \OpenApi\Processors\BuildPaths::class, which is the original value in the original fork.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 411
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-03-25