PHPackages                             rock-ms/phpunit - 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. rock-ms/phpunit

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

rock-ms/phpunit
===============

The PHP Unit Testing framework.

11.5.3(1y ago)02BSD-3-ClausePHPPHP &gt;=8.2

Since Sep 19Pushed 1y agoCompare

[ Source](https://github.com/rockms-dev/phpunit)[ Packagist](https://packagist.org/packages/rock-ms/phpunit)[ Docs](https://phpunit.de/)[ Fund](https://phpunit.de/sponsors.html)[ GitHub Sponsors](https://github.com/sebastianbergmann)[ RSS](/packages/rock-ms-phpunit/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (19)Versions (624)Used By (0)

[![PHPUnit](.github/img/phpunit.svg)](https://phpunit.de/?ref=github)

[![CI Status](https://github.com/sebastianbergmann/phpunit/workflows/CI/badge.svg)](https://github.com/sebastianbergmann/phpunit/actions)[![codecov](https://camo.githubusercontent.com/10536317cfd42cb04330832dae1a3ec7fbe2a4243809309339ea824ac10ea205/68747470733a2f2f636f6465636f762e696f2f67682f73656261737469616e626572676d616e6e2f706870756e69742f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d30797a42554b38577269)](https://codecov.io/gh/sebastianbergmann/phpunit)[![Latest Stable Version](https://camo.githubusercontent.com/4ea06eace949462b2a25bbf911714c6e2bbda9ff6c8473d4094c8319cf9f9c56/68747470733a2f2f706f7365722e707567782e6f72672f706870756e69742f706870756e69742f76)](https://packagist.org/packages/phpunit/phpunit)[![Total Downloads](https://camo.githubusercontent.com/5c398b04cf7d97905a80120b095aa2c47e349b1c3aaba150d14acbdb6fef3ff9/68747470733a2f2f706f7365722e707567782e6f72672f706870756e69742f706870756e69742f646f776e6c6f616473)](https://packagist.org/packages/phpunit/phpunit/stats)[![Monthly Downloads](https://camo.githubusercontent.com/40ffd6aada3a4a7a009445719310cba6541ca03abfb4c78d512aa8c8e79b89e0/68747470733a2f2f706f7365722e707567782e6f72672f706870756e69742f706870756e69742f642f6d6f6e74686c79)](https://packagist.org/packages/phpunit/phpunit/stats)[![Daily Downloads](https://camo.githubusercontent.com/0ca1f8658ab1819282a8bfa3eb72abc99d928c217f8a62c537061c2b8a4959b3/68747470733a2f2f706f7365722e707567782e6f72672f706870756e69742f706870756e69742f642f6461696c79)](https://packagist.org/packages/phpunit/phpunit/stats)

PHPUnit
=======

[](#phpunit)

PHPUnit is a programmer-oriented testing framework for PHP. It is an instance of the xUnit architecture for unit testing frameworks.

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

[](#installation)

We distribute a [PHP Archive (PHAR)](https://php.net/phar) that has all required dependencies of PHPUnit bundled in a single file:

```
$ wget https://phar.phpunit.de/phpunit-X.Y.phar

$ php phpunit-X.Y.phar --version
```

Please replace `X.Y` with the version of PHPUnit you are interested in.

Alternatively, you may use [Composer](https://getcomposer.org/) to download and install PHPUnit as well as its dependencies. Please refer to the [documentation](https://phpunit.de/documentation.html?ref=github) for details on how to install PHPUnit.

Contribute
----------

[](#contribute)

Please refer to [CONTRIBUTING.md](https://github.com/sebastianbergmann/phpunit/blob/main/.github/CONTRIBUTING.md) for information on how to contribute to PHPUnit and its related projects.

A big "Thank you!" to everyone who has contributed to PHPUnit! You can find a detailed list of contributors on every PHPUnit related package on GitHub.

Here is a list of all components that are primarily developed and maintained by [Sebastian Bergmann](https://sebastian-bergmann.de/open-source.html?ref=github):

- [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit)
- [phpunit/php-code-coverage](https://github.com/sebastianbergmann/php-code-coverage)
- [phpunit/php-file-iterator](https://github.com/sebastianbergmann/php-file-iterator)
- [phpunit/php-invoker](https://github.com/sebastianbergmann/php-invoker)
- [phpunit/php-text-template](https://github.com/sebastianbergmann/php-text-template)
- [phpunit/php-timer](https://github.com/sebastianbergmann/php-timer)
- [sebastian/cli-parser](https://github.com/sebastianbergmann/cli-parser)
- [sebastian/comparator](https://github.com/sebastianbergmann/comparator)
- [sebastian/complexity](https://github.com/sebastianbergmann/complexity)
- [sebastian/diff](https://github.com/sebastianbergmann/diff)
- [sebastian/environment](https://github.com/sebastianbergmann/environment)
- [sebastian/exporter](https://github.com/sebastianbergmann/exporter)
- [sebastian/global-state](https://github.com/sebastianbergmann/global-state)
- [sebastian/lines-of-code](https://github.com/sebastianbergmann/lines-of-code)
- [sebastian/object-enumerator](https://github.com/sebastianbergmann/object-enumerator)
- [sebastian/object-reflector](https://github.com/sebastianbergmann/object-reflector)
- [sebastian/recursion-context](https://github.com/sebastianbergmann/recursion-context)
- [sebastian/type](https://github.com/sebastianbergmann/type)
- [sebastian/version](https://github.com/sebastianbergmann/version)

A very special thanks to everyone who has contributed to the [PHPUnit Manual](https://github.com/sebastianbergmann/phpunit-documentation-english).

In addition to the components listed above, PHPUnit depends on the components listed below:

- [myclabs/deep-copy](https://github.com/myclabs/DeepCopy)
- [nikic/php-parser](https://github.com/nikic/php-parser)
- [phar-io/manifest](https://github.com/phar-io/manifest)
- [phar-io/version](https://github.com/phar-io/version)
- [staabm/side-effects-detector](https://github.com/staabm/side-effects-detector)
- [theseer/tokenizer](https://github.com/theseer/tokenizer)

These tools are used to develop PHPUnit:

- [Composer](https://getcomposer.org/)
- [Phive](https://phar.io/)
- [PHP Autoload Builder](https://github.com/theseer/Autoload/)
- [PHP-CS-Fixer](https://cs.symfony.com/)
- [PHP-Scoper](https://github.com/humbug/php-scoper)
- [PHPStan](https://phpstan.org/)

Sponsors
--------

[](#sponsors)

It has taken [Sebastian Bergmann](https://sebastian-bergmann.de/open-source.html?ref=github) thousands of hours to develop, test, and support PHPUnit. [**You can sponsor his Open Source work through GitHub Sponsors**](https://github.com/sponsors/sebastianbergmann), for example.

These businesses support Sebastian Bergmann's work on PHPUnit:

   [![Bubble Shooter](.github/img/bubble-shooter.png)](https://www.bubbleshooter.net/) [![in2it vof](.github/img/in2it.svg)](https://www.in2it.be/phpunit-supporter/) [![Roave](.github/img/roave.svg)](https://roave.com/)   [![Route4Me](.github/img/route4me.svg)](https://route4me.com/) [![Testmo GmbH](.github/img/testmo.svg)](https://testmo.com/) [![Tideways GmbH](.github/img/tideways.svg)](https://tideways.com/)   [![TYPO3 GmbH](.github/img/typo3.svg)](https://typo3.com/) [![VEMA Versicherungsmakler Genossenschaft eG](.github/img/vema.svg)](https://vema-eg.de/)  Would you like to see your logo here as well as on the [PHPUnit website](https://phpunit.de/sponsors.html?ref=github)? Contact Sebastian Bergmann at  to learn more about how you can support his work on PHPUnit.

Whether you are a CEO, CFO, CTO, or a developer: your company surely depends on Open Source software. [It is time to pay your share](https://opensourcepledge.com/) and support maintainers like [Sebastian Bergmann](https://sebastian-bergmann.de/open-source.html?ref=github).

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance42

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity95

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 88.5% 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

617

Last Release

476d ago

Major Versions

10.5.39 → 11.5.12024-12-11

10.5.40 → 11.5.22024-12-21

10.5.41 → 11.5.32025-01-13

8.5.x-dev → 10.5.x-dev2025-01-26

10.5.x-dev → 11.5.x-dev2025-01-26

PHP version history (14 changes)3.7.0PHP &gt;=5.3.3

5.0.0PHP &gt;=5.6

4.8.20PHP ~5.3.3|~5.4|~5.5|~5.6

5.2.8PHP ^5.6 || ^7.0

6.0.0PHP ^7.0

7.0.0PHP ^7.1

8.0.0PHP ^7.2

9.0.0PHP ^7.3

9.3.0PHP ^7.3 || ^8.0

9.3.9PHP &gt;=7.3

8.5.12PHP &gt;=7.2

10.0.0PHP &gt;=8.1

11.0.0PHP &gt;=8.2

9.6.x-devPHP &gt;8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/84a61537ceb62705539abfd45a1d10943b3e5563fab238483fa5e820333a48ae?d=identicon)[rockms-dev](/maintainers/rockms-dev)

---

Top Contributors

[![sebastianbergmann](https://avatars.githubusercontent.com/u/25218?v=4)](https://github.com/sebastianbergmann "sebastianbergmann (18060 commits)")[![localheinz](https://avatars.githubusercontent.com/u/605483?v=4)](https://github.com/localheinz "localheinz (558 commits)")[![whatthejeff](https://avatars.githubusercontent.com/u/306525?v=4)](https://github.com/whatthejeff "whatthejeff (443 commits)")[![epdenouden](https://avatars.githubusercontent.com/u/26651359?v=4)](https://github.com/epdenouden "epdenouden (287 commits)")[![edorian](https://avatars.githubusercontent.com/u/247397?v=4)](https://github.com/edorian "edorian (245 commits)")[![staabm](https://avatars.githubusercontent.com/u/120441?v=4)](https://github.com/staabm "staabm (91 commits)")[![realFlowControl](https://avatars.githubusercontent.com/u/14161194?v=4)](https://github.com/realFlowControl "realFlowControl (83 commits)")[![Ocramius](https://avatars.githubusercontent.com/u/154256?v=4)](https://github.com/Ocramius "Ocramius (63 commits)")[![mlively](https://avatars.githubusercontent.com/u/176150?v=4)](https://github.com/mlively "mlively (46 commits)")[![kubawerlos](https://avatars.githubusercontent.com/u/9282069?v=4)](https://github.com/kubawerlos "kubawerlos (44 commits)")[![keradus](https://avatars.githubusercontent.com/u/2716794?v=4)](https://github.com/keradus "keradus (38 commits)")[![theseer](https://avatars.githubusercontent.com/u/111333?v=4)](https://github.com/theseer "theseer (35 commits)")[![Slamdunk](https://avatars.githubusercontent.com/u/152236?v=4)](https://github.com/Slamdunk "Slamdunk (33 commits)")[![giorgiosironi](https://avatars.githubusercontent.com/u/160299?v=4)](https://github.com/giorgiosironi "giorgiosironi (30 commits)")[![kabel](https://avatars.githubusercontent.com/u/675956?v=4)](https://github.com/kabel "kabel (28 commits)")[![marcioAlmada](https://avatars.githubusercontent.com/u/227395?v=4)](https://github.com/marcioAlmada "marcioAlmada (27 commits)")[![sun](https://avatars.githubusercontent.com/u/41992?v=4)](https://github.com/sun "sun (26 commits)")[![oliverklee](https://avatars.githubusercontent.com/u/765746?v=4)](https://github.com/oliverklee "oliverklee (25 commits)")[![jrfnl](https://avatars.githubusercontent.com/u/663378?v=4)](https://github.com/jrfnl "jrfnl (25 commits)")[![tobyS](https://avatars.githubusercontent.com/u/187140?v=4)](https://github.com/tobyS "tobyS (24 commits)")

---

Tags

testingphpunitxunit

### Embed Badge

![Health badge](/badges/rock-ms-phpunit/health.svg)

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

###  Alternatives

[phpunit/phpunit

The PHP Unit Testing framework.

20.0k910.7M134.8k](/packages/phpunit-phpunit)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[phpunit/php-code-coverage

Library that provides collection, processing, and rendering functionality for PHP code coverage information.

8.9k892.4M1.5k](/packages/phpunit-php-code-coverage)[trebol/entrust

This package provides a flexible way to add role-based permissions to Laravel and is a fork from Zizaco/entrust

1572.1k](/packages/trebol-entrust)

PHPackages © 2026

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