PHPackages                             microphp/microphp - 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. [Framework](/categories/framework)
4. /
5. microphp/microphp

ActiveProject[Framework](/categories/framework)

microphp/microphp
=================

2.0.0(1y ago)210PHPPHP &gt;=8.0

Since Sep 11Pushed 1y agoCompare

[ Source](https://github.com/micro-php-code/microphp)[ Packagist](https://packagist.org/packages/microphp/microphp)[ RSS](/packages/microphp-microphp/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)Dependencies (6)Versions (3)Used By (0)

### 安装驱动

[](#安装驱动)

#### 一. 使用workerman驱动

[](#一-使用workerman驱动)

```
composer require microphp/workerman
```

#### 二. 使用roadrunner驱动

[](#二-使用roadrunner驱动)

```
composer require microphp/roadrunner
```

1. 安装roadrunner二进制文件 ```
    php bin/console roadrunner:get
    ```
2. 修改.env中驱动 ```
    SERVER_DRIVER=roadrunner
    ```

#### 三. 使用swoole驱动

[](#三-使用swoole驱动)

```
composer require microphp/swoole
```

1. 修改.env中驱动 ```
    SERVER_DRIVER=swoole
    ```
2. 发布配置 ```
    php bin/console config:publish swoole
    ```

#### 四. 使用AMP驱动

[](#四-使用amp驱动)

```
composer require microphp/amp
```

### 运行

[](#运行)

```
php bin/console start
```

### 格式化代码

[](#格式化代码)

```
composer cs ./app
```

### 生成Swagger文档

[](#生成swagger文档)

```
发布配置
php bin/console config:publish swagger
生成文档
php bin/console swagger:gen
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance44

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community6

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

Total

2

Last Release

443d ago

Major Versions

1.0.0 → 2.0.02025-04-18

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/28125259?v=4)[Liu](/maintainers/LTaooo)[@LTaooo](https://github.com/LTaooo)

---

Top Contributors

[![LTaooo](https://avatars.githubusercontent.com/u/28125259?v=4)](https://github.com/LTaooo "LTaooo (31 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/microphp-microphp/health.svg)

```
[![Health](https://phpackages.com/badges/microphp-microphp/health.svg)](https://phpackages.com/packages/microphp-microphp)
```

###  Alternatives

[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k39.6M297](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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