PHPUnit
The PHP Unit Testing framework. observed · 2026-10-17
Health v2 · maintenance only
95/100
- Activity 100
- Release rhythm 87
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 0
- age_days: 6144
- days_rel: 4
- days_push: 4
- n_releases_24m: 248
Adoption not part of the score
20066 stars · 2214 forks observed · 2026-10-17
What it is AI-extracted, prompt v1, taxonomy v1, 2026-10-19, confidence 0.99
PHPUnit is a programmer‑oriented unit testing framework for PHP, following the xUnit architecture. It can be installed via PHAR or Composer and provides assertions, test runners, and code‑coverage tools.
Use cases
- run unit tests for PHP applications
- automate regression testing in a PHP project
- measure code coverage of PHP code
- integrate testing into CI pipelines for PHP
- validate business logic with PHPUnit test cases
- perform test‑driven development in PHP
When to choose
- You need a mature, widely adopted unit testing framework for PHP.
- You want seamless Composer integration and a single‑file PHAR for easy execution.
- Your project follows xUnit patterns and requires rich assertions and code‑coverage support.
When to avoid
- You require a testing tool for non‑PHP languages.
- You need a GUI‑based test runner or visual test management.
- Your testing strategy relies heavily on behavior‑driven development (BDD) without additional extensions.
Facets
library · maturity active
testing developer-tools testing php cli windows phpunit xunit phar composer unit-testing linux macos
4 sources
- readme: https://github.com/sebastianbergmann/phpunit · fetched 2026-10-17 · cec1c943dc6b
- homepage: https://phpunit.de/ · fetched 2026-10-05 · 7c9277fae0b5
- site_page: https://phpunit.de/documentation.html · fetched 2026-10-05 · 727fadfefc61
- site_page: https://phpunit.de/getting-started.html · fetched 2026-10-05 · e7544271d078
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| sebastianbergmann/phpunit | main | 95 |
| sebastianbergmann/php-code-coverage | backend | 95 |
| sebastianbergmann/php-timer | backend | 76 |
| sebastianbergmann/diff | backend | 97 |
| sebastianbergmann/php-file-iterator | backend | 97 |
| sebastianbergmann/php-text-template | backend | 88 |
| sebastianbergmann/comparator | backend | 96 |
| sebastianbergmann/exporter | backend | 96 |
| sebastianbergmann/environment | backend | 99 |
| sebastianbergmann/global-state | backend | 84 |
| sebastianbergmann/version | backend | 88 |
| sebastianbergmann/recursion-context | backend | 88 |
| sebastianbergmann/object-enumerator | backend | 85 |
| sebastianbergmann/object-reflector | backend | 85 |
| sebastianbergmann/phpunit-mock-objects | backend | 10 |
| sebastianbergmann/type | backend | 96 |
| sebastianbergmann/php-invoker | backend | 76 |
| sebastianbergmann/complexity | backend | 76 |
| sebastianbergmann/cli-parser | backend | 87 |
| sebastianbergmann/lines-of-code | backend | 91 |
| sebastianbergmann/dbunit | backend | 10 |
| sebastianbergmann/phpunit-documentation | docs | 10 |
| sebastianbergmann/phpunit-documentation-english | docs | 75 |
For agents
markdown · JSON · MCP: product_card(name="sebastianbergmann/phpunit")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem