PHPackages                             evert/phpunit-bin - 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. evert/phpunit-bin

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

evert/phpunit-bin
=================

Global phpunit cli script that finds your project's phpunit and runs it.

1.1.0(10y ago)18773MITPHPPHP &gt;=5.5

Since Feb 16Pushed 10y ago2 watchersCompare

[ Source](https://github.com/evert/phpunit-bin)[ Packagist](https://packagist.org/packages/evert/phpunit-bin)[ RSS](/packages/evert-phpunit-bin/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (4)Used By (0)

PHPUnit script invoker
======================

[](#phpunit-script-invoker)

Many PHP projects now supply [PHPUnit](https://phpunit.de/) via `require-dev` in composer. This means that to run PHPUnit, you often have to supply a full path to the local `phpunit` binary.

This package is intended to be installed globally, and supplies you with a `phpunit` script as well.

This script will automatically find a `composer.json` in your current path or one of its parents, and find the correct "local" phpunit script and runs it for you.

In addition to that, it will also attempt to find `phpunit.xml` or `phpunit.xml.dist` and change the working directory to that path before running the real `phpunit` script.

This means that using this script, you can just invoke `phpunit` from wherever you are in your project, and it will run it correctly.

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

[](#installation)

```
composer global require evert/phpunit-bin

```

Make sure that after you run that, your global composer `bin` directory is in your `$PATH`. This is usually `~/.composer/vendor/bin`, or `~/.config/composer/vendor/bin`

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 70% 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 ~45 days

Total

3

Last Release

3698d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ec28c32d012f276f61b0b58cabe3c8f674166732d9b20eeddc3f9807857ba10?d=identicon)[evert](/maintainers/evert)

---

Top Contributors

[![evert](https://avatars.githubusercontent.com/u/178960?v=4)](https://github.com/evert "evert (7 commits)")[![bcremer](https://avatars.githubusercontent.com/u/55820?v=4)](https://github.com/bcremer "bcremer (2 commits)")[![Seldaek](https://avatars.githubusercontent.com/u/183678?v=4)](https://github.com/Seldaek "Seldaek (1 commits)")

### Embed Badge

![Health badge](/badges/evert-phpunit-bin/health.svg)

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

###  Alternatives

[dms/phpunit-arraysubset-asserts

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

14429.2M352](/packages/dms-phpunit-arraysubset-asserts)[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)
