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

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

robotdance/php-console
======================

Utilities for console output and text animations

v0.0.6(10y ago)160MITPHPPHP &gt;=5.3.2

Since Jun 2Pushed 10y ago1 watchersCompare

[ Source](https://github.com/robotdance/php-console)[ Packagist](https://packagist.org/packages/robotdance/php-console)[ Docs](https://github.com/robotdance/php-console)[ RSS](/packages/robotdance-php-console/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (6)Dependencies (4)Versions (7)Used By (0)

PHP-Console
===========

[](#php-console)

[![Code Climate](https://camo.githubusercontent.com/1134e00e2717af4cd699e3ba343d3358e1eb90ecd005bebeec6c066b743ce55d/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f726f626f7464616e63652f7068702d636f6e736f6c652f6261646765732f6770612e737667)](https://codeclimate.com/github/robotdance/php-console)[![Test Coverage](https://camo.githubusercontent.com/16695b74eb2c94ecc08006900513bb36a390bfe36f64adf561b70a2971cc3b23/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f726f626f7464616e63652f7068702d636f6e736f6c652f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/robotdance/php-console/coverage)[![Issue Count](https://camo.githubusercontent.com/d7e32e1284aec730209cf6644926a8f208da528b73aff3aca060d691f54cad2d/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f726f626f7464616e63652f7068702d636f6e736f6c652f6261646765732f69737375655f636f756e742e737667)](https://codeclimate.com/github/robotdance/php-console)

PHP-Console is an utility class for console output and text animations.

Animations (new!)
-----------------

[](#animations-new)

You can produce ASC Art animations using a simple sprite structure and animate them in your console output.

```
use robotdance/Sprite;
...
$spr = new Sprite('./sprites/blinking_programmer.spr');
echo $spr->animate();
}
```

That will produce a programmer blinking his eyes in front of the computer:

[![Blinking programmer GIF](https://github.com/robotdance/php-console/raw/master/sprites/blinking_programmer.gif)](https://github.com/robotdance/php-console/blob/master/sprites/blinking_programmer.gif)

The sprite files are easy to build. A fast hack into the example `vim sprites/blinking_programmer.spr` and the sprite class `vim src/Sprite.php` will show you how to make your own animations. Have fun!

Ansi color output examples
--------------------------

[](#ansi-color-output-examples)

```
use robotdance/Console;
...
echo Console::red('Bob is going home'); // red text
echo Console::apply('Bob is going home', ['red', 'bold']); // red and bold text
echo Console::indent('Bob is going home', 4, 2); two levels of identation
}
```

Please take a look at the source comments and generate docs through PHPDocumentor to learn more.

Setup
-----

[](#setup)

PHP-Console uses [Composer](https://getcomposer.org/) as dependency manager.

`$ composer install`

You may also generate documentation:

`$ ./bin/phpdoc -d ./src/ -t ./docs/`

Testing
-------

[](#testing)

`$ ./bin/phpunit`

Contribute
----------

[](#contribute)

Fork, code your tests and modifications, write a good commit message and submit a pull request. All tests must pass and the coverage must remains at 100%.

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

Total

6

Last Release

3651d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1504086?v=4)[Marcos Menegazzo](/maintainers/MarcosMenegazzo)[@MarcosMenegazzo](https://github.com/MarcosMenegazzo)

---

Top Contributors

[![MarcosMenegazzo](https://avatars.githubusercontent.com/u/1504086?v=4)](https://github.com/MarcosMenegazzo "MarcosMenegazzo (8 commits)")

---

Tags

phpcliconsoleutilitiesoutputcolorsAnimations

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[nunomaduro/termwind

It's like Tailwind CSS, but for the console.

2.5k260.6M359](/packages/nunomaduro-termwind)[nunomaduro/laravel-console-task

Laravel Console Task is a output method for your Laravel/Laravel Zero commands.

2592.3M13](/packages/nunomaduro-laravel-console-task)[mehrancodes/laravel-harbor

A CLI tool to Quickly create On-Demand preview environment for your apps.

10095.6k](/packages/mehrancodes-laravel-harbor)[php-school/learn-you-php

An introduction to PHP's core features: i/o, http, arrays, exceptions and so on.

3202.0k](/packages/php-school-learn-you-php)[alecrabbit/php-cli-snake

Lightweight cli spinner with zero dependencies

29214.4k5](/packages/alecrabbit-php-cli-snake)

PHPackages © 2026

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