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 6y 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 3w 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

Maturity34

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

[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)
