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

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

attreid/console
===============

Nette Cli console with web interface

1.0.2(6mo ago)041MITPHPPHP &gt;= 8.4

Since Aug 10Pushed 6mo ago1 watchersCompare

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

READMEChangelogDependencies (4)Versions (4)Used By (0)

Nette Cli console with web interface
====================================

[](#nette-cli-console-with-web-interface)

**Requirements:** PHP 8.4+

Settings in **config.neon**
---------------------------

[](#settings-in-configneon)

```
extensions:
    console: Atrreid\Console\DI\ConsoleExtension
```

available settings

```
console:
    prefix: cli
    collections:
        - ClassWithCommands
```

Add route

```
class RouterFactory
    public function __construct(private readonly \Attreid\Console\Routing\RouterFactory $consoleRouterFactory)
	{
	}

	public function createRouter(): RouteList
	{
		$router = new RouteList;
		$this->consoleRouterFactory->createRoutes($router);
		// other routes
}
```

Commands
--------

[](#commands)

```
class ClassWithCommands extends CommandCollection {

    /**
     * Comment, show in help
     * @param string $variable comment
     */
    public function command(string $variable): void {
        $this->printLine('Some info');
        // php code
    }
}
```

Run
---

[](#run)

Run in console

```
php index.php ClassWithCommands:command /variable=value
```

or in browser with Tracy on

```
http://domain/cli/ClassWithCommands/command?variable=value

```

Development / Docker
--------------------

[](#development--docker)

Build and run the PHP 8.4 CLI container:

```
docker compose up -d
docker compose exec php composer install
docker compose exec php composer test
docker compose exec php php index.php ClassWithCommands:command /variable=value
```

One-off run (e.g. install and test without keeping container):

```
docker compose run --rm php composer install
docker compose run --rm php composer test
```

Tests
-----

[](#tests)

- **In Docker (recommended):**

```
docker compose run --rm php composer test
docker compose run --rm php composer test:coverage
```

- **Locally (if you have PHP 8.4 + Composer):**
    - Run tests: `composer test`
    - Run tests with coverage: `composer test:coverage` (generates `coverage.html`)

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance67

Regular maintenance activity

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity68

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

Total

3

Last Release

192d ago

PHP version history (2 changes)1.0.0PHP &gt;= 8.1

1.0.2PHP &gt;= 8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/3a388aeb3f00b15a3af1c1a5d3a2107c94af1730c6043dd30ce32a63f95ea290?d=identicon)[attreid](/maintainers/attreid)

---

Top Contributors

[![attreid](https://avatars.githubusercontent.com/u/13151440?v=4)](https://github.com/attreid "attreid (7 commits)")

### Embed Badge

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

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

###  Alternatives

[nette/web-project

Nette: Standard Web Project

11093.7k](/packages/nette-web-project)[tomaj/nette-api

Nette api

36276.9k8](/packages/tomaj-nette-api)[kdyby/autowired

Syntax sugar for working with services in Nette Framework

30925.3k18](/packages/kdyby-autowired)

PHPackages © 2026

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