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

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

netherphp/console
=================

A CLI Parser

v4.0.7(4y ago)13.4k3BSD-3-ClausePHPPHP &gt;=8.0CI failing

Since Jul 14Pushed 1mo agoCompare

[ Source](https://github.com/netherphp/console)[ Packagist](https://packagist.org/packages/netherphp/console)[ RSS](/packages/netherphp-console/feed)WikiDiscussions redux Synced 1mo ago

READMEChangelogDependencies (4)Versions (27)Used By (3)

**Nether Console (netherphp/console)**
======================================

[](#nether-console-netherphpconsole)

[![Packagist](https://camo.githubusercontent.com/dee1f2a0617444541b42ed7057e9bd6f990ffb257e86cc8a890d05e1f6b8883e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e65746865727068702f636f6e736f6c652e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/netherphp/console)[![Build Status](https://camo.githubusercontent.com/3f92d4f718089b5d76442446f3fe5858bdffc3d3a4fdb778c4455d6965389474/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6e65746865727068702f636f6e736f6c652f706870756e69742e796d6c3f7374796c653d666f722d7468652d6261646765)](https://github.com/netherphp/console/actions)[![codecov](https://camo.githubusercontent.com/b8ea945c0b6203cd930c6d9a191e0258285c099c163bd0babe3e7e0d825e8573/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f67682f6e65746865727068702f636f6e736f6c653f7374796c653d666f722d7468652d626164676526746f6b656e3d5651433438584e425332)](https://codecov.io/gh/netherphp/console)

This package provides some basic functionality for creating command line interfaces via PHP 8 attributes.

Quickstart
==========

[](#quickstart)

```
require('vendor/autoloader.php');

use Nether\Console\Meta\Command;
use Nether\Console\Meta\Info;
use Nether\Console\Meta\Arg;
use Nether\Console\Meta\Toggle;

class App
extends Nether\Console\Client {

	#[Command]
	#[Info('A whatever command.')]
	public function
	Whatever():
	int {

		echo 'Whatever', PHP_EOL;
		return 0;
	}

	#[Command]
	#[Info('A whenever command.')]
	#[Arg('date', 'A date input.')]
	#[Toggle('-u', 'Output as unix time.')]
	public function
	Whenever():
	int {

		$Date = $this->GetInput(1);
		$Unixise = $this->GetOption('u');

		if($Unixise)
		echo date('U', strtotime($Date));
		else
		echo date('Y-m-d', strtotime($Date));

		echo PHP_EOL;

		return 0;
	}

}

exit((new App)->Run());
```

```
$ php ./test.php

USAGE: test.php

  whatever

    A whatever command.

  whenever

    A whenever command.

    -u
      Output as unix time.

```

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance60

Regular maintenance activity

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity78

Established project with proven stability

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

Recently: every ~92 days

Total

25

Last Release

1572d ago

Major Versions

v1.0.7 → v2.0.02016-02-26

v2.0.4 → v3.0.02017-08-20

v3.0.3 → v4.0.02021-01-06

### Community

Maintainers

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

---

Top Contributors

[![bobmagicii](https://avatars.githubusercontent.com/u/881944?v=4)](https://github.com/bobmagicii "bobmagicii (149 commits)")

---

Tags

phpcliconsole

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[nunomaduro/termwind

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

2.5k239.8M286](/packages/nunomaduro-termwind)[nunomaduro/laravel-console-task

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

2582.1M11](/packages/nunomaduro-laravel-console-task)[alecrabbit/php-console-spinner

Extremely flexible spinner for \[async\] php cli applications

24032.0k2](/packages/alecrabbit-php-console-spinner)[mehrancodes/laravel-harbor

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

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

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

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

Lightweight cli spinner with zero dependencies

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

PHPackages © 2026

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