PHPackages                             cooper/hyperf-pest - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. cooper/hyperf-pest

ActiveLibrary[Testing &amp; Quality](/categories/testing)

cooper/hyperf-pest
==================

Pest Testing for hyperf

v1.1.0(2y ago)2291MITPHPPHP &gt;=8.0

Since Jul 17Pushed 2y ago1 watchersCompare

[ Source](https://github.com/myxiaoao/hyperf-pest)[ Packagist](https://packagist.org/packages/cooper/hyperf-pest)[ RSS](/packages/cooper-hyperf-pest/feed)WikiDiscussions master Synced 1mo ago

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

Pest Testing for Hyperf
=======================

[](#pest-testing-for-hyperf)

[ ![Tests](https://github.com/myxiaoao/hyperf-pest/workflows/PHPUnit/badge.svg)](https://github.com/myxiaoao/hyperf-pest/actions?query=workflow%3APHPUnit)[ ![Latest Stable Version](https://camo.githubusercontent.com/03544d3371e7ab5c21d2a1fecf5a5b460c2c1eb8251ec83b5d8d4abbc9cc449e/68747470733a2f2f706f7365722e707567782e6f72672f636f6f7065722f6879706572662d706573742f762f737461626c652e737667)](https://packagist.org/packages/cooper/hyperf-pest)[ ![Total Downloads](https://camo.githubusercontent.com/b87a8273aeb92676a96e51a1a31ac7149400335753236b67f99bae8c784ab35b/68747470733a2f2f706f7365722e707567782e6f72672f636f6f7065722f6879706572662d706573742f642f746f74616c2e737667)](https://packagist.org/packages/cooper/hyperf-pest)[Pest](https://pestphp.com/) 是一个注重简单性的优雅 PHP 测试框架.

### 1.安装 Hyperf-skeleton (已有 Hyperf 项目请忽略)

[](#1安装-hyperf-skeleton-已有-hyperf-项目请忽略)

```
composer create-project hyperf/hyperf-skeleton
```

### 2.使用 Composer 安装

[](#2使用-composer-安装)

```
composer require cooper/hyperf-pest
```

执行

```
php bin/hyperf.php vendor:publish cooper/hyperf-pest
```

### 3.测试命令

[](#3测试命令)

```
./vendor/bin/co-pest --prepend test/bootstrap.php -c phpunit.xml
```

#### 提示

[](#提示)

- 在 `composer.json` 中 `scripts` 添加命令快捷方式：`"pest": "co-pest --prepend test/bootstrap.php -c phpunit.xml --colors=always"`；
- 语法请看[官方文档](https://pestphp.com/docs/writing-tests)；
- 按照 `phpunit` 写测试也是可以的。

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

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

Total

2

Last Release

1031d ago

### Community

Maintainers

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

---

Top Contributors

[![myxiaoao](https://avatars.githubusercontent.com/u/1223134?v=4)](https://github.com/myxiaoao "myxiaoao (8 commits)")

---

Tags

hyperfpesttestingphptestingpesthyperf

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/cooper-hyperf-pest/health.svg)

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

###  Alternatives

[pestphp/pest-plugin-drift

The Pest Drift Plugin

734.0M74](/packages/pestphp-pest-plugin-drift)[defstudio/pest-plugin-laravel-expectations

A plugin to add laravel tailored expectations to Pest

98548.9k4](/packages/defstudio-pest-plugin-laravel-expectations)[jonpurvis/lawman

A PestPHP Plugin to help with architecture testing SaloonPHP integrations

4027.7k8](/packages/jonpurvis-lawman)

PHPackages © 2026

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