PHPackages                             yunhanphp/lumen-dev-yaml-swagger - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. yunhanphp/lumen-dev-yaml-swagger

ActiveLibrary[API Development](/categories/api)

yunhanphp/lumen-dev-yaml-swagger
================================

Swagger文档，用PHP注释可读性差，维护性差，使用YAML格式

v1.0.3(7y ago)01411MITPHPPHP &gt;=7.1.3

Since Aug 6Pushed 7y ago1 watchersCompare

[ Source](https://github.com/YunhanPHP/lumen-dev-yaml-swagger)[ Packagist](https://packagist.org/packages/yunhanphp/lumen-dev-yaml-swagger)[ Docs](https://github.com/YunhanTech/swagger-lumen-yaml)[ RSS](/packages/yunhanphp-lumen-dev-yaml-swagger/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (4)Dependencies (7)Versions (5)Used By (1)

SwaggerLumenYaml
================

[](#swaggerlumenyaml)

Swagger 2.0 for Lumen 5

对 [SwaggerLume](https://github.com/DarkaOnLine/SwaggerLume) 进行封装。 使其支持YAML文档。

安装
==

[](#安装)

```
composer require --dev yunhanphp/lumen-dev-yaml-swagger

```

#### `bootstrap/app.php`

[](#bootstrapappphp)

- 去掉门面注释: ```
         $app->withFacades();
    ```
- 添加配置加载: ```
         $app->configure('swagger-lume');
    ```
- 注册服务: ```
        $app->register(\YunhanDev\Swagger\SwaggerLumenServiceProvider::class);
    ```
- 配置YAML目录 `config/swagger-lume.php`： ```
    [
        "paths" => [
            "yamlAnnotations" => [base_path('docs')] // 默认目录
        ]
    ]
    ```

#### 其它使用见 [SwaggerLume](https://github.com/DarkaOnLine/SwaggerLume) 文档

[](#其它使用见-swaggerlume-文档)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~7 days

Total

4

Last Release

2860d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11437584?v=4)[Ray Gu](/maintainers/raygu0101)[@raygu0101](https://github.com/raygu0101)

---

Top Contributors

[![raygu0101](https://avatars.githubusercontent.com/u/11437584?v=4)](https://github.com/raygu0101 "raygu0101 (17 commits)")

---

Tags

swaggeryamllumenYunhanTech

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yunhanphp-lumen-dev-yaml-swagger/health.svg)

```
[![Health](https://phpackages.com/badges/yunhanphp-lumen-dev-yaml-swagger/health.svg)](https://phpackages.com/packages/yunhanphp-lumen-dev-yaml-swagger)
```

###  Alternatives

[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

2.9k36.4M126](/packages/darkaonline-l5-swagger)[darkaonline/swagger-lume

OpenApi or Swagger integration to Lumen

3322.4M3](/packages/darkaonline-swagger-lume)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1155.2k](/packages/rcsofttech-audit-trail-bundle)[psx/api

Parse and generate API specification formats

37181.6k5](/packages/psx-api)[digit-soft/laravel-swagger-generator

Swagger yaml generator

168.1k](/packages/digit-soft-laravel-swagger-generator)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
