PHPackages                             kaiseki/wp-cli-util - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. kaiseki/wp-cli-util

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kaiseki/wp-cli-util
===================

WP-CLI helpers: colorized output, logging, and timers.

1.0.0(1mo ago)08671MITPHPPHP ^8.2CI passing

Since May 29Pushed 3w ago2 watchersCompare

[ Source](https://github.com/kaisekidev/kaiseki-wp-cli-util)[ Packagist](https://packagist.org/packages/kaiseki/wp-cli-util)[ Docs](https://github.com/kaisekidev/kaiseki-wp-cli-util)[ RSS](/packages/kaiseki-wp-cli-util/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (13)Versions (6)Used By (1)

kaiseki/wp-cli-util
===================

[](#kaisekiwp-cli-util)

Small helpers for building [WP-CLI](https://wp-cli.org/) commands: colorized output, structured logging, and timers.

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

[](#installation)

```
composer require kaiseki/wp-cli-util
```

Requires PHP 8.2+ and a WP-CLI runtime (the classes call `WP_CLI`).

Components
----------

[](#components)

### Colorizer

[](#colorizer)

Named wrappers around `WP_CLI::colorize()` — foreground colors, bright variants, backgrounds, and styles:

```
use Kaiseki\WordPress\WpCli\Util\Colorizer;

$c = new Colorizer();
echo $c->toGreen('done');
echo $c->toRedBright('failed');
echo $c->toBackgroundYellow('note');
```

### Logger

[](#logger)

Formatted log lines (built on `Colorizer`) with colored, emoji-prefixed levels and optional indentation:

```
use Kaiseki\WordPress\WpCli\Util\Logger;

$log = new Logger(new Colorizer());
$log->start('Importing posts');
$log->info('Found 120 items', indent: true);
$log->success('Done');
$log->warning('Skipped 3');
$log->error('Could not connect');
```

### Timer / TimerBuilder

[](#timer--timerbuilder)

Elapsed and per-interval timing with human-readable formatting:

```
use Kaiseki\WordPress\WpCli\Util\TimerBuilder;

$timer = (new TimerBuilder())->make();
$timer->startTimer();
// … work …
echo $timer->getElapsedTimeString();  // e.g. "1m 12s"

$timer->addInterval();
// … more work …
echo $timer->getIntervalTimeString(); // time since the last interval
```

Development
-----------

[](#development)

```
composer install
composer check   # cs-check, phpstan
```

License
-------

[](#license)

MIT — see [LICENSE](LICENSE).

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance94

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

35d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1c3a6b11aea9668c9e9ca0c0f8515ef114d344acb552c695d715d35d5b388ea4?d=identicon)[woda](/maintainers/woda)

---

Top Contributors

[![davidmondok](https://avatars.githubusercontent.com/u/3883758?v=4)](https://github.com/davidmondok "davidmondok (11 commits)")[![wolfgangschaefer](https://avatars.githubusercontent.com/u/26325205?v=4)](https://github.com/wolfgangschaefer "wolfgangschaefer (7 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

wordpressmodule

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/kaiseki-wp-cli-util/health.svg)

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

###  Alternatives

[aristath/kirki

Extending the WordPress customizer

1.3k73.1k4](/packages/aristath-kirki)[afragen/git-updater

A plugin to automatically update GitHub, Bitbucket, GitLab, or Gitea hosted plugins, themes, and language packs.

3.3k1.7k](/packages/afragen-git-updater)

PHPackages © 2026

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