The PHP Unit Testing framework.

Installs: 259 376 021

Dependents: 102 752

Suggesters: 189

Security: 1

Stars: 17 566

Watchers: 349

Forks: 2 005

Open Issues: 128

9.5.4 2021-03-23 07:16 UTC

This package is auto-updated.

Last update: 2021-05-12 06:35:55 UTC


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

Latest Stable Version Minimum PHP Version CI Status Type Coverage


We distribute a PHP Archive (PHAR) that has all required (as well as some optional) dependencies of PHPUnit 10.0 bundled in a single file:

$ wget

$ php phpunit-nightly.phar --version

Alternatively, you may use Composer to download and install PHPUnit as well as its dependencies. Please refer to the "Getting Started" guide for details on how to install PHPUnit.


Please refer to for information on how to contribute to PHPUnit and its related projects.

List of Contributors

Thanks to everyone who has contributed to PHPUnit! You can find a detailed list of contributors on every PHPUnit related package on GitHub. This list shows only the major components:

A very special thanks to everyone who has contributed to the documentation and helps maintain the translations: