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)166PHP

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 today

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

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

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

4150d 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

[illuminate/console

The Illuminate Console package.

13046.0M6.5k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

71470.5k9](/packages/styleci-cli)[winbox/args

Windows command-line formatter

20720.9k21](/packages/winbox-args)[tomatophp/filament-artisan

Simple but yet powerful library for running some artisan commands for FilamentPHP

3275.4k1](/packages/tomatophp-filament-artisan)

PHPackages © 2026

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