PHPackages                             blesta/consoleation - 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. blesta/consoleation

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

blesta/consoleation
===================

A Command Line User Interface

1.0.0(7y ago)1550↓33.3%MITPHPPHP &gt;=5.3.0

Since Oct 24Pushed 7y ago4 watchersCompare

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

READMEChangelogDependencies (2)Versions (3)Used By (0)

Consoleation
============

[](#consoleation)

[![Build Status](https://camo.githubusercontent.com/e5c7398fe544b605c4f9621ed46f392927cf5f4d1db8debe8afe7c3797e2ba6a/68747470733a2f2f7472617669732d63692e6f72672f626c657374612f636f6e736f6c656174696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/blesta/consoleation)

A simple library for output to command-line and setting a progress bar

Installation
------------

[](#installation)

Install via Composer

```
composer require blesta/consoleation

```

Basic Usage
-----------

[](#basic-usage)

### Retrieve a single line from standard input

[](#retrieve-a-single-line-from-standard-input)

```
use Blesta/Consoleation/Console;

$console = new Console();
$line = $console->getLine();

```

### Display content to standard output

[](#display-content-to-standard-output)

```
use Blesta/Consoleation/Console;

$console = new Console();
$console->output("This is a single line with a blank new line\n");

```

Any number of additional arguments may be passed to *output* to perform string replacements via `sprintf`.

```
use Blesta/Consoleation/Console;

$console = new Console();
$console->output("Would you like %s or %s?", "apples", "oranges");

```

### Display a progress bar

[](#display-a-progress-bar)

```
use Blesta/Consoleation/Console;

$console = new Console();
$console->output("Performing the installation...\n");

$start = 1;
$finish = 5;
$progressBarCharLength = 50;
foreach (range($start, $finish) as $index => $number) {
    $console->progressBar($index + 1, $finish, $progressBarCharLength);
    sleep(1);
}

```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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 ~0 days

Total

2

Last Release

2763d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e1100c7dbee65c40edf82c25a4b7d5a34bd677ff86263396ca2ac5163da1dbe0?d=identicon)[tysonphillips](/maintainers/tysonphillips)

![](https://www.gravatar.com/avatar/b73da57e4fcb22c7d7f459b2bd00ea7bceb6252df0cd14e2d0bf4b6a145709fc?d=identicon)[paulphillips](/maintainers/paulphillips)

![](https://www.gravatar.com/avatar/49adf61c394a865424ab1d98a1a07dd448cf3aff70b13a20aa167531c765fb94?d=identicon)[Jono](/maintainers/Jono)

---

Top Contributors

[![tysonphillips](https://avatars.githubusercontent.com/u/8607630?v=4)](https://github.com/tysonphillips "tysonphillips (7 commits)")

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/blesta-consoleation/health.svg)

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

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