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

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

ghign0/console
==============

console handle for php cli

1.2.1(7y ago)013MITPHP

Since May 28Pushed 7y ago1 watchersCompare

[ Source](https://github.com/ghign0/simple-php-console)[ Packagist](https://packagist.org/packages/ghign0/console)[ RSS](/packages/ghign0-console/feed)WikiDiscussions master Synced 2mo ago

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

SIMPLE CONSOLE
==============

[](#simple-console)

This is a simple php console for php cli applications

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

[](#installation)

```
composer require ghign0/console

```

usage
-----

[](#usage)

```
include __DIR__."/../vendor/autoload.php";

use Console\Console;

$console = new Console([
    'command' => \Path\To\Class\CommandClass::class
]);
$console->run();
```

Native commands are :

- help
- version
- quit

Other Commands can be added in Console creation passing an array of commands In the example, a command 'command' has been added.

A Command must implements `CommandInterface` and can implements `CommandAdminInterfacae`.

```
namespace Console\Command;

interface CommandInterface
{
    public function getCommand();

    public function execute();

    public function help();

}
```

When a command is called, the method `execute()` is executed.
It must return a string, to be written in the console by `ConsoleHandler`

You can add custom text colors by adding `Color::COLOR` in you string, where COLOR can be YELLOW, GREEN, RED, BLUE etc.
For the complete list visit its [page](https://packagist.org/packages/codedungeon/php-cli-colors) on Packagelist.org.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 63% 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

5

Last Release

2909d ago

### Community

Maintainers

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

---

Top Contributors

[![mghinassi](https://avatars.githubusercontent.com/u/78916437?v=4)](https://github.com/mghinassi "mghinassi (29 commits)")[![ghign0](https://avatars.githubusercontent.com/u/11851871?v=4)](https://github.com/ghign0 "ghign0 (17 commits)")

### Embed Badge

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

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

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