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

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

rquadling/abstract-console
==========================

Abstract Application and Command with Input and Output helpers used by RQuadling's projects

v2.0.0(5y ago)061[1 PRs](https://github.com/rquadling/abstract-console/pulls)1PHPPHP ^7.4

Since Dec 27Pushed 1y ago1 watchersCompare

[ Source](https://github.com/rquadling/abstract-console)[ Packagist](https://packagist.org/packages/rquadling/abstract-console)[ RSS](/packages/rquadling-abstract-console/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (10)Versions (5)Used By (1)

RQuadling/AbstractConsole
=========================

[](#rquadlingabstractconsole)

[![Build Status](https://camo.githubusercontent.com/499ba2d5b02f14c78640b477ec6bf92073af65e0640fae16d5e4904d340702ad/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f72717561646c696e672f61627374726163742d636f6e736f6c652e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d747261766973)](https://travis-ci.org/rquadling/abstract-console)[![Code Coverage](https://camo.githubusercontent.com/4827cfd806716a17ed231c99eddc873113e341a88ec80584cd3737bf1867654f/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f72717561646c696e672f61627374726163742d636f6e736f6c652e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d7363727574696e697a6572)](https://scrutinizer-ci.com/g/rquadling/abstract-console/)[![GitHub issues](https://camo.githubusercontent.com/f3e1122c30c042ecf37ada23bd11d57688a025c9934960588d29d3378bc0a28e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f72717561646c696e672f61627374726163742d636f6e736f6c652e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d676974687562)](https://github.com/rquadling/abstract-console/issues)

[![PHP Version](https://camo.githubusercontent.com/d09de808253b49cc79f9ab1d2a7a4e655c653e95554b1dad48453d86f16f82c1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f72717561646c696e672f61627374726163742d636f6e736f6c652e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/rquadling/abstract-console)[![Stable Version](https://camo.githubusercontent.com/50fd83553249e5f902e1db7c6c77c9bbe736757fb86453a095cd21803f55e1c0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72717561646c696e672f61627374726163742d636f6e736f6c652e7376673f7374796c653d666f722d7468652d6261646765266c6162656c3d4c6174657374)](https://packagist.org/packages/rquadling/abstract-console)

[![Total Downloads](https://camo.githubusercontent.com/ec168ccdec69779c6f238ae681faa0943acf22819cfb81e226d9af00b1038fdd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f72717561646c696e672f61627374726163742d636f6e736f6c652e7376673f7374796c653d666f722d7468652d6261646765266c6162656c3d546f74616c2b646f776e6c6f616473)](https://packagist.org/packages/rquadling/abstract-console)[![Monthly Downloads](https://camo.githubusercontent.com/b3fbec747e17fe219321fbdfdae987fca71321ffca6a1ec6fc7e31faaef41eb8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f72717561646c696e672f61627374726163742d636f6e736f6c652e7376673f7374796c653d666f722d7468652d6261646765266c6162656c3d4d6f6e74686c792b646f776e6c6f616473)](https://packagist.org/packages/rquadling/abstract-console)[![Daily Downloads](https://camo.githubusercontent.com/70ad707c1fc3d9bcb33e1f69c51b3dd66295917ed757922719a61a6841fccecc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64642f72717561646c696e672f61627374726163742d636f6e736f6c652e7376673f7374796c653d666f722d7468652d6261646765266c6162656c3d4461696c792b646f776e6c6f616473)](https://packagist.org/packages/rquadling/abstract-console)

Abstract Application and Command with Input and Output helpers used by RQuadling's projects

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

[](#installation)

Using Composer:

```
composer require rquadling/abstract-console
```

Dependency Injection
--------------------

[](#dependency-injection)

Add the following entries to your `di.php`

```
    // Symfony Console Input wrapper to allow potential operation via a web based controller
    \Symfony\Component\Console\Input\InputInterface::class => function () {
        return new \RQuadling\Console\Input\Input(array_get($_SERVER, 'argv', []));
    },
    // Symfony Console Output wrapper to allow potential operation via a web based controller
    \Symfony\Component\Console\Output\OutputInterface::class => function (\Psr\Container\ContainerInterface $c) {
        return PHP_SAPI == 'cli'
            ? $c->get(\Symfony\Component\Console\Output\ConsoleOutput::class)
            : $c->get(\Symfony\Component\Console\Output\BufferedOutput::class);
    },
```

Environment variables
---------------------

[](#environment-variables)

1. `COMMAND_DIRECTORY` - Define the location of the Commands.
2. `COMMAND_NAMESPACE` - Define the namespace for the Commands.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

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

Total

3

Last Release

2142d ago

Major Versions

v1.1.0 → v2.0.02020-06-29

PHP version history (2 changes)v1.0.0PHP ^7

v2.0.0PHP ^7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/4c385f24d4f13c86b9c3e54c61b2532189c1ffb3099a8e63738fd75de90b20ba?d=identicon)[RQuadling](/maintainers/RQuadling)

---

Top Contributors

[![rquadling](https://avatars.githubusercontent.com/u/12801?v=4)](https://github.com/rquadling "rquadling (13 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[crazywhalecc/static-php-cli

Build single static PHP binary, with PHP project together, with popular extensions included.

1.8k13.9k](/packages/crazywhalecc-static-php-cli)[matthiasnoback/symfony-console-form

Use Symfony forms for Console command input

368264.8k8](/packages/matthiasnoback-symfony-console-form)[phpcr/phpcr-shell

Shell for PHPCR

721.3M8](/packages/phpcr-phpcr-shell)[madewithlove/license-checker

CLI tool to verify allowed licenses for composer dependencies

54449.8k21](/packages/madewithlove-license-checker)[shel/neos-terminal

Neos CMS Ui terminal for running Eel expressions and other commands

1441.3k](/packages/shel-neos-terminal)

PHPackages © 2026

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