PHPackages                             cadre/cliadr - 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. cadre/cliadr

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

cadre/cliadr
============

Command line ADR implementation

0.2.0(8y ago)3261MITPHPPHP &gt;=7.0

Since Oct 21Pushed 8y ago2 watchersCompare

[ Source](https://github.com/cadrephp/Cadre.CliAdr)[ Packagist](https://packagist.org/packages/cadre/cliadr)[ RSS](/packages/cadre-cliadr/feed)WikiDiscussions 0.x Synced 3w ago

READMEChangelog (3)Dependencies (7)Versions (5)Used By (0)

Cadre.CliAdr
============

[](#cadrecliadr)

This is a proof of concept command line Action-Domain-Responder (ADR) implementation.

It's heavily inspired by [Radar](https://github.com/radarphp/Radar.Project).

Example
-------

[](#example)

```
use Aura\Cli\CliFactory;
use Aura\Cli\Context;
use Aura\Cli\Help;
use Aura\Cli\Stdio;
use Cadre\CliAdr\Boot;
use Cadre\CliAdr\Input\HelpAwareInterface;

require __DIR__ . '/vendor/autoload.php';

$boot = new Boot();
$adr = $boot->adr();

$adr->route('hello', function ($name) {
    return "Hello, {$name}";
})->input(new class implements HelpAwareInterface {
    public function help(Help $help)
    {
        $help->setSummary('Hello, World');
        $help->setOptions([
            '#name?' => 'First name [default: "World"]',
        ]);

        return $help;
    }

    public function __invoke(Context $context)
    {
        $getopt = $context->getopt([]);
        return [$getopt->get(2, 'World')];
    }
});

$factory = new CliFactory();
$context = $factory->newContext($GLOBALS);
$stdio = $factory->newStdio();

exit($adr->run($context, $stdio));
```

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.4% 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 ~85 days

Total

5

Last Release

3190d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/97c4de661b1a9718e83127e45b82b743076baf61bb9321708c9dfad7b02ad5a1?d=identicon)[andrewshell](/maintainers/andrewshell)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/cadre-cliadr/health.svg)

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

###  Alternatives

[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24726.4M22](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

13045.3M6.2k](/packages/illuminate-console)[bear/package

BEAR.Sunday application framework package

30553.3k25](/packages/bear-package)

PHPackages © 2026

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