PHPackages                             vaneves/console - 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. vaneves/console

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

vaneves/console
===============

Console Tools

v1.0.0(4y ago)05MITPHPPHP &gt;=7.4

Since Mar 24Pushed 4y ago1 watchersCompare

[ Source](https://github.com/vaneves/console)[ Packagist](https://packagist.org/packages/vaneves/console)[ RSS](/packages/vaneves-console/feed)WikiDiscussions main Synced 6d ago

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

Console
=======

[](#console)

PHP Simple Console

Install
-------

[](#install)

```
composer require vaneves/console
```

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

[](#basic-usage)

```
require_once('../vendor/autoload.php');

use Vaneves\Console\Console;
```

### Console

[](#console-1)

```
use Vaneves\Console\Console;

$console = new Console();

$console->title('A highlighted title for the section');

$console->line('A regular line.');

$console->success('Operation executed successfully!');
$console->info('This is just highlighted information.');
$console->warning('This requires your attention!');
$console->error('Oops! Error during execution!');
$console->comment('Just a comment.');
$console->comment('Just a comment without slash.', false);

$console->successWithIcon('Operation executed successfully!');
$console->infoWithIcon('This is just highlighted information.');
$console->warningWithIcon('This requires your attention!');
$console->errorWithIcon('Oops! Error during execution!');

$console->successWithIcon('Operation executed successfully!', '❤');
$console->infoWithIcon('This is just highlighted information.', '➥');
$console->warningWithIcon('This requires your attention!', '➤');
$console->errorWithIcon('Oops! Error during execution!', '✖');
```

Output:

```
===================================
A highlighted title for the section
===================================

A regular line.
Operation executed successfully!
This is just highlighted information.
This requires your attention!
Oops! Error during execution!
// Just a comment.
Just a comment without slash.
✔ Operation executed successfully!
☛ This is just highlighted information.
⚠ This requires your attention!
✘ Oops! Error during execution!
❤ Operation executed successfully!
➥ This is just highlighted information.
➤ This requires your attention!
✖ Oops! Error during execution!
```

### Progress

[](#progress)

```
use Vaneves\Console\Progress;

$total = 150;

$progress = new Progress($total);
$progress->start();

for ($i = 1; $i advance();
    usleep(30000);
}
$progress->finish();
```

Output:

```
74/150 [▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░] 49%
```

### Table

[](#table)

```
use Vaneves\Console\Table;

$data = [
    [
        'name' => 'Van Neves',
        'domain' => 'vaneves.com',
        'profession' => 'PHP Developer',
    ],
    [
        'name' => 'Luiz Carvalho',
        'domain' => 'luizcarvalho.com',
        'profession' => 'Ruby Developer',
    ],
    [
        'name' => 'Nyl Marcos',
        'domain' => '',
        'profession' => 'PHP Developer',
    ],
];

$table = new Table($data);
$table->show();
```

Output:

```
+---------------+------------------+----------------+
| name          | domain           | profession     |
+---------------+------------------+----------------+
| Van Neves     | vaneves.com      | PHP Developer  |
| Luiz Carvalho | luizcarvalho.com | Ruby Developer |
| Nyl Marcos    |                  | PHP Developer  |
+---------------+------------------+----------------+
```

### Padding

[](#padding)

```
use Vaneves\Console\Padding;

$padding = new Padding(20);
$padding->line('Apples', '$0.99');
$padding->line('Bananas', '$0.39');
$padding->line('Clementines', '$3.99');
$padding->line('Lemons', '$0.69');
$padding->line('Strawberriess', '$1.99');
```

Output:

```
Apples.........$0.99
Bananas........$0.39
Clementines....$3.99
Lemons.........$0.69
Strawberriess..$1.99
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Unknown

Total

1

Last Release

1514d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/78dd10e51f9ab3b0d703a4f61c9bd1415deb74b6401a3468b221e9f5f73fc990?d=identicon)[vaneves](/maintainers/vaneves)

---

Top Contributors

[![vaneves](https://avatars.githubusercontent.com/u/146581?v=4)](https://github.com/vaneves "vaneves (26 commits)")

---

Tags

cliconsoleconsole-colorphpterminalconsoleterminal

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vaneves-console/health.svg)

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

###  Alternatives

[symfony/console

Eases the creation of beautiful and testable command line interfaces

9.8k1.1B11.3k](/packages/symfony-console)[php-school/cli-menu

A command line menu helper in PHP

2.0k1.1M27](/packages/php-school-cli-menu)[recca0120/terminal

run laravel artisan command in web application

878410.9k2](/packages/recca0120-terminal)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)[aplus/cli

Aplus Framework CLI Library

2301.7M6](/packages/aplus-cli)[splitbrain/php-cli

Easy command line scripts for PHP with opt parsing and color output. No dependencies

177817.2k28](/packages/splitbrain-php-cli)

PHPackages © 2026

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