PHPackages                             wnowicki/cli - 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. [CLI &amp; Console](/categories/cli)
4. /
5. wnowicki/cli

ActiveLibrary[CLI &amp; Console](/categories/cli)

wnowicki/cli
============

PHP CLI

1.0.0(11y ago)066PHP

Since Feb 11Pushed 11y ago1 watchersCompare

[ Source](https://github.com/wnowicki/cli)[ Packagist](https://packagist.org/packages/wnowicki/cli)[ RSS](/packages/wnowicki-cli/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (4)Used By (0)

PHP CLI Library
===============

[](#php-cli-library)

by WNowicki

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/e9ee77ec00e5e209e8a2dc0d0b05e7ce05072297891c56abb273336aab80e2ae/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f776e6f7769636b692f636c692f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/wnowicki/cli/?branch=master) [![Build Status](https://camo.githubusercontent.com/c5287a8d64f7ce0f585f04d6cc8ce16b48c4b131a62acdf92eac6ae1ad7bff11/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f776e6f7769636b692f636c692f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/wnowicki/cli/build-status/master)

Install
-------

[](#install)

### Composer Installation

[](#composer-installation)

To install *cli* library you will need to use [Composer](http://getcomposer.org/) in your project. If you aren't using Composer yet, it's really simple!

```
curl -sS https://getcomposer.org/installer | php
```

### Cli Installation

[](#cli-installation)

```
php composer.phar require wnowicki/cli:~1.0
```

Example
-------

[](#example)

```
$box = \WNowicki\Cli\Box::makeFromString("Lorem ipsum dolor sit amet,\nconsectetur adipiscing elit.", null, null, \WNowicki\Cli\Color::BG_RED);

$box2 = \WNowicki\Cli\Box::make(20, 7, \WNowicki\Cli\Color::COLOR_YELLOW, null, \WNowicki\Cli\Color::BG_WHITE)
    ->addBorder('*', null, \WNowicki\Cli\Color::BG_RED)
    ->addTitle('Box', \WNowicki\Cli\Color::COLOR_BLACK);

\WNowicki\Cli\Screen::make()
    ->putInCenter($box, 6)
    ->putInColumn($box2, 2, 1, 10)
    ->putInColumn($box2, 2, 2, 10)
    ->addTitle('Title', \WNowicki\Cli\Color::COLOR_GREEN, null, \WNowicki\Cli\Color::BG_BLACK)
    ->render();
```

Demo
----

[](#demo)

Run:

```
cd demo
php snake.php

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~11 days

Total

2

Last Release

4103d ago

Major Versions

0.1.0 → 1.0.02015-02-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/130d2a3a039f00925395a3c2665077f39d038c45634fa0bb7b584c6b5928743a?d=identicon)[wnowicki](/maintainers/wnowicki)

---

Top Contributors

[![wnowicki](https://avatars.githubusercontent.com/u/3448809?v=4)](https://github.com/wnowicki "wnowicki (38 commits)")

### Embed Badge

![Health badge](/badges/wnowicki-cli/health.svg)

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

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.1k17.2M320](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.8M17](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)[codedungeon/php-cli-colors

Liven up you PHP Console Apps with standard colors

10210.1M26](/packages/codedungeon-php-cli-colors)

PHPackages © 2026

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