PHPackages                             vkcom/kphpunit - 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. vkcom/kphpunit

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

vkcom/kphpunit
==============

KPHP polyfill-like package for the PHPUnit

v1.0.0(4y ago)2295[1 issues](https://github.com/VKCOM/kphpunit/issues)5MITPHPPHP &gt;=7.2

Since Mar 3Pushed 4y ago2 watchersCompare

[ Source](https://github.com/VKCOM/kphpunit)[ Packagist](https://packagist.org/packages/vkcom/kphpunit)[ RSS](/packages/vkcom-kphpunit/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)DependenciesVersions (2)Used By (5)

KPHPUnit
========

[](#kphpunit)

[KPHP](https://github.com/VKCOM/kphp/) polyfill-like package for the [PHPUnit](https://phpunit.de/).

This package is exported to make it possible for [ktest](https://github.com/VKCOM/ktest) to work in `phpunit` mode.

Everything you need to know about this package:

1. It tries to mimic the `PHPUnit` API where possible, so you don't need a `kphpunit` API reference; it's the same
2. You install it to your `[K]PHP` project to have an ability to run KPHP tests
3. You never directly use it on your own. It's inserted into the instrumented code produced by the `ktest` code generator

So if you need anything apart from installing this package, please file an issue in [ktest](https://github.com/VKCOM/ktest/issues/new) repository.

To install this package, do the following:

```
$ composer require --dev vkcom/kphpunit
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity44

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

Unknown

Total

1

Last Release

1574d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/240434d174eb40dd828dc69bf885b12f9effff2c95b3da629cdb2bfd10846ad9?d=identicon)[vk\_com](/maintainers/vk_com)

---

Top Contributors

[![quasilyte](https://avatars.githubusercontent.com/u/6286655?v=4)](https://github.com/quasilyte "quasilyte (3 commits)")

---

Tags

kphpkphpunitktestphpphpunitpolyfilltesttests

### Embed Badge

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

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

###  Alternatives

[dms/phpunit-arraysubset-asserts

This package provides ArraySubset and related asserts once deprecated in PHPUnit 8

14228.7M340](/packages/dms-phpunit-arraysubset-asserts)[orchestra/workbench

Workbench Companion for Laravel Packages Development

8219.1M69](/packages/orchestra-workbench)[phpbenchmark/phpbenchmark

Easy to use benchmark toolkit for your PHP-application. This library contains classes for comparing algorithms as well as benchmarking application responses

8011.5k2](/packages/phpbenchmark-phpbenchmark)

PHPackages © 2026

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