PHPackages                             thesmart/php-cli-tools - 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. thesmart/php-cli-tools

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

thesmart/php-cli-tools
======================

A collection of tools to help with command line development in PHP 5.3

v1.1(13y ago)28.2k↓100%MITPHPPHP &gt;=5.3.0

Since Aug 7Pushed 13y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (3)Used By (0)

PHP Command Line Tools
======================

[](#php-command-line-tools)

A collection of functions and classes to assist with command line development.

Requirements

- PHP &gt;= 5.3

Function List
-------------

[](#function-list)

- `\cli\out($msg, ...)`
- `\cli\out_padded($msg, ...)`
- `\cli\err($msg, ...)`
- `\cli\line($msg = '', ...)`
- `\cli\input()`
- `\cli\prompt($question, $default = false, $marker = ':')`
- `\cli\choose($question, $choices = 'yn', $default = 'n')`
- `\cli\menu($items, $default = false, $title = 'Choose an Item')`

Progress Indicators
-------------------

[](#progress-indicators)

- `\cli\notifier\Dots($msg, $dots = 3, $interval = 100)`
- `\cli\notifier\Spinner($msg, $interval = 100)`
- `\cli\progress\Bar($msg, $total, $interval = 100)`

Tabular Display
---------------

[](#tabular-display)

- `\cli\Table::__construct(array $headers = null, array $rows = null)`
- `\cli\Table::setHeaders(array $headers)`
- `\cli\Table::setRows(array $rows)`
- `\cli\Table::addRow(array $row)`
- `\cli\Table::sort($column)`
- `\cli\Table::display()`

Usage
-----

[](#usage)

See `example.php` for examples.

Todo
----

[](#todo)

- Expand this README
- Add doc blocks to rest of code

###  Health Score

32

—

LowBetter than 71% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.6% 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 ~0 days

Total

2

Last Release

5023d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/11f682ea6d98e41ccb56db0a284ac5b085fd31d40c3119cf8c3e493f87498c0a?d=identicon)[thesmart](/maintainers/thesmart)

---

Top Contributors

[![jlogsdon](https://avatars.githubusercontent.com/u/88460?v=4)](https://github.com/jlogsdon "jlogsdon (25 commits)")[![thesmart](https://avatars.githubusercontent.com/u/280877?v=4)](https://github.com/thesmart "thesmart (2 commits)")

---

Tags

clicommand-linepromptstdouttabsprogress bar

### Embed Badge

![Health badge](/badges/thesmart-php-cli-tools/health.svg)

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

###  Alternatives

[symfony/console

Eases the creation of beautiful and testable command line interfaces

9.8k1.1B11.2k](/packages/symfony-console)[nunomaduro/collision

Cli error handling for console/command-line PHP applications.

4.6k331.8M8.4k](/packages/nunomaduro-collision)[nategood/commando

PHP CLI Commando Style

8123.3M38](/packages/nategood-commando)[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)[minicli/minicli

Experimental micro CLI framework for PHP

1.1k382.5k47](/packages/minicli-minicli)[clue/stdio-react

Async, event-driven console input &amp; output (STDIN, STDOUT) for truly interactive CLI applications, built on top of ReactPHP

19810.2M27](/packages/clue-stdio-react)

PHPackages © 2026

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