PHPackages                             erik-nystrom/php-clio - 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. erik-nystrom/php-clio

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

erik-nystrom/php-clio
=====================

A Super simple PHP Command Line IO class

05PHP

Since May 20Pushed 5y ago1 watchersCompare

[ Source](https://github.com/erik-nystrom/php-clio)[ Packagist](https://packagist.org/packages/erik-nystrom/php-clio)[ RSS](/packages/erik-nystrom-php-clio/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHPClio
=======

[](#phpclio)

A basic class to help facilitate command line IO in your PHP scripts.

Why did I make this?
--------------------

[](#why-did-i-make-this)

For command line PHP applications that require some degree of input, this has served me well.

Usage
-----

[](#usage)

Install via Composer:

```
composer require erik-nystrom/php-clio

```

Alias/Import into your script:

```
use PHPClio\Console as Console;

```

Output text to the console:

```
Console::out("Here's some sample text");

```

Get user input from the console:

```
$input = Console::in("Enter some text");

```

Get user input from the console, with restrictions:

```
$input = Console::in("Enter some text", ["ValidInput1", "ValidInput2", "ValidInput3"]);

```

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/63740247?v=4)[Erik Nystrom](/maintainers/erik-nystrom)[@erik-nystrom](https://github.com/erik-nystrom)

---

Top Contributors

[![erik-nystrom](https://avatars.githubusercontent.com/u/63740247?v=4)](https://github.com/erik-nystrom "erik-nystrom (10 commits)")

### Embed Badge

![Health badge](/badges/erik-nystrom-php-clio/health.svg)

```
[![Health](https://phpackages.com/badges/erik-nystrom-php-clio/health.svg)](https://phpackages.com/packages/erik-nystrom-php-clio)
```

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

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

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[chi-teck/drupal-code-generator

Drupal code generator

26947.8M5](/packages/chi-teck-drupal-code-generator)[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)

PHPackages © 2026

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