PHPackages                             afragen/wp-cli-runner - 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. afragen/wp-cli-runner

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

afragen/wp-cli-runner
=====================

Helper to test custom WP-CLI commands by bootstrapping WP-CLI

0.1.2(4y ago)058GPL-2.0-or-laterPHP

Since Dec 7Pushed 4y agoCompare

[ Source](https://github.com/afragen/wp-cli-runner)[ Packagist](https://packagist.org/packages/afragen/wp-cli-runner)[ Docs](https://github.com/afragen/wp-cli-runner)[ RSS](/packages/afragen-wp-cli-runner/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

WP-CLI-Runner
=============

[](#wp-cli-runner)

Helper to test custom WP-CLI commands by bootstrapping WP-CLI.

Forked from

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

[](#installation)

To install simply require the package in the `composer.json` file like

```
"require-dev":
{
"afragen/wp-cli-runner": "^0.1"
}
```

Then use `composer update` to fetch the package.

### Bootstrap

[](#bootstrap)

In your PHPUnit `bootstrap.php` file you will need add the following:

```
$vendorDir = '/path/to/vendor';
\Fragen\WP_CLI_Runner\Runner::init( $vendorDir );
```

Then WP-CLI will be loaded whenever you instantiate your custom CLI command classes in your unit tests cases.

See the [blog post](http://polevaultweb.com/?p=818) for more information.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~265 days

Total

3

Last Release

1823d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/82779a185fccde41e1dd3b914bde84cd6be76c8dcb8f6b983f461c8f5687a87e?d=identicon)[afragen](/maintainers/afragen)

---

Top Contributors

[![afragen](https://avatars.githubusercontent.com/u/1296790?v=4)](https://github.com/afragen "afragen (4 commits)")[![polevaultweb](https://avatars.githubusercontent.com/u/1770201?v=4)](https://github.com/polevaultweb "polevaultweb (4 commits)")

---

Tags

testingwp-cli

### Embed Badge

![Health badge](/badges/afragen-wp-cli-runner/health.svg)

```
[![Health](https://phpackages.com/badges/afragen-wp-cli-runner/health.svg)](https://phpackages.com/packages/afragen-wp-cli-runner)
```

###  Alternatives

[phpunit/phpunit

The PHP Unit Testing framework.

20.0k910.7M134.8k](/packages/phpunit-phpunit)[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)[mockery/mockery

Mockery is a simple yet flexible PHP mock object framework

10.7k497.0M23.6k](/packages/mockery-mockery)[behat/behat

Scenario-oriented BDD framework for PHP

4.0k96.8M2.0k](/packages/behat-behat)[symfony/phpunit-bridge

Provides utilities for PHPUnit, especially user deprecation notices management

2.5k201.2M4.2k](/packages/symfony-phpunit-bridge)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)

PHPackages © 2026

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