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

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

jnjxp/console
=============

Simple PHP Console

016PHP

Since May 25Pushed 9y ago1 watchersCompare

[ Source](https://github.com/jnjxp/jnjxp.console)[ Packagist](https://packagist.org/packages/jnjxp/console)[ RSS](/packages/jnjxp-console/feed)WikiDiscussions develop Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

jnjxp.console
=============

[](#jnjxpconsole)

Really simple commandline interface

Usage
-----

[](#usage)

### Console

[](#console)

```
/**
 * Some Commands
 */

class HelloWorld
{
    public function __invoke($name = 'World')
    {
        echo "Hello $name" . PHP_EOL;
        return \Jnjxp\Console\Status::SUCCESS;
    }
}

class ByeWorld
{
    public function __invoke($name = 'World')
    {
        echo "Bye $name" . PHP_EOL;
        return \Jnjxp\Console\Status::SUCCESS;
    }
}

/**
 * Create an application
 */
$console = new Jnjxp\Console\Console(
    [
        'hi'  => HelloWorld::class,
        'bye' => ByeWorld::class
    ]
);

// Execute based on input and exit
$status = $console($argv);
exit($status);
```

### StdLog

[](#stdlog)

See:

```
$log = new \Jnjxp\Console\StdLog;
$log->setLevel(\Psr\Log\LogLevel::INFO);

$log->debug('This wont print cuz level');
$log->info('Prints to stdout');
$log->error('Prints to STDERR');
```

###  Health Score

20

—

LowBetter than 12% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/64baf5fff415327ccc832998afe54b34ac3c621e401f128a9343d4e0b0a3f9e4?d=identicon)[jnj](/maintainers/jnj)

---

Top Contributors

[![jakejohns](https://avatars.githubusercontent.com/u/174708?v=4)](https://github.com/jakejohns "jakejohns (2 commits)")

### Embed Badge

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

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

###  Alternatives

[illuminate/console

The Illuminate Console package.

13046.6M7.1k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

71477.7k9](/packages/styleci-cli)[j13k/yaml-lint

A compact command line utility for checking YAML file syntax

161.2M25](/packages/j13k-yaml-lint)[winbox/args

Windows command-line formatter

20722.5k21](/packages/winbox-args)[mallardduck/laravel-traits

A collection of useful Laravel snippets in the form of easy to use traits.

136.2k2](/packages/mallardduck-laravel-traits)

PHPackages © 2026

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