PHPackages                             bobitluo/php-swagger-ui - 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. bobitluo/php-swagger-ui

ActiveProject[API Development](/categories/api)

bobitluo/php-swagger-ui
=======================

基于php-swagger的web网站

v0.2(6y ago)015MITPHP

Since Aug 16Pushed 6y ago1 watchersCompare

[ Source](https://github.com/bobitluo/php-swagger-ui)[ Packagist](https://packagist.org/packages/bobitluo/php-swagger-ui)[ RSS](/packages/bobitluo-php-swagger-ui/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (5)Versions (4)Used By (0)

php-swagger-ui
==============

[](#php-swagger-ui)

Introduction
------------

[](#introduction)

一个基于 [php-swagger](https://github.com/bobitluo/php-swagger) 生成PHP API在线文档的UI项目

Installation
------------

[](#installation)

```
composer create-project --prefer-dist bobitluo/php-swagger yourproject
```

Usage
-----

[](#usage)

修改 config.yaml

```
projects:
  your_first_project:  # 定义项目KEY。可配置多个项目
    type: directory
    dir: /your/project/controller/dir   # 配置成项目controller的目录(建议部署在开发或测试环境)
    swagger:
      title: project name
      description: project description
      version: project version
      host: your_project_host.com   # 配置成项目的主机名(建议配置开发或测试环境的主机)
      schemes:
        - https
      securityDefinitions:  # 认证相关配置。请参考 https://swagger.io/docs/specification/2-0/authentication/
        ApiKeyAuth:
          type: apiKey
          in: header
          name: Authorization
      security:
        - ApiKeyAuth: []
      controller_prefix:
      controller_postfix: Controller
      action_prefix:
      action_postfix: Action
```

PHP注释格式
-------

[](#php注释格式)

[PHP注释格式](https://github.com/bobitluo/php-swagger#php%E6%B3%A8%E9%87%8A%E6%A0%B7%E4%BE%8B)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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 ~0 days

Total

2

Last Release

2462d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c6eeb914220de1f07e66f6cb27aa5a78a8c047a2edb12d7fad315700b0a28ae7?d=identicon)[bobitluo](/maintainers/bobitluo)

---

Top Contributors

[![bobitluo](https://avatars.githubusercontent.com/u/7253963?v=4)](https://github.com/bobitluo "bobitluo (2 commits)")

### Embed Badge

![Health badge](/badges/bobitluo-php-swagger-ui/health.svg)

```
[![Health](https://phpackages.com/badges/bobitluo-php-swagger-ui/health.svg)](https://phpackages.com/packages/bobitluo-php-swagger-ui)
```

###  Alternatives

[phpdocumentor/phpdocumentor

Documentation Generator for PHP

4.4k3.1M878](/packages/phpdocumentor-phpdocumentor)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[code-lts/doctum

Doctum, a PHP API documentation generator. Fork of Sami

35077.9k31](/packages/code-lts-doctum)[cnizzardini/cakephp-swagger-bake

Automatically generate OpenApi, Swagger, and Redoc documentation from your existing cakephp project

60171.2k4](/packages/cnizzardini-cakephp-swagger-bake)[pronamic/wp-documentor

Documentation Generator for WordPress.

6529.8k5](/packages/pronamic-wp-documentor)

PHPackages © 2026

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