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

ActiveLibrary

asgard/console
==============

v0.3.1(10y ago)029MITPHPPHP &gt;=5.5.9

Since Sep 9Pushed 10y agoCompare

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

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

\#Console

The Asgard Console package is an simple extension to the [Symfony Console component](http://symfony.com/fr/doc/current/components/console/introduction.html).

- [Installation](#installation)
- [Commands](#usage)
- [Command](#command)
- [Application](#application)

\##Installation **If you are working on an Asgard project you don't need to install this library as it is already part of the standard libraries.**

```
composer require asgard/console 0.*

```

\##Usage

MyCommand class

```
class MyCommand extends Asgard\Console\Command {
	protected $name = 'mycommand';
	protected $description = 'This is my command';

	protected function getOptions() {
		return [
			['verbose', null, InputOption::VALUE_NONE, 'Verbose output.', null]
		];
	}

	protected function getArguments() {
		return [
			['argument', InputArgument::REQUIRED, 'An argument.'],
		];
	}
}

```

Console script:

```
$command = new MyCommand; #extends Asgard\Console\Command
containerlication = new MyApplication('MyApp', 5.6, new \Asgard\Container\Container); #extends Asgard\Console\Application
#application constructor parameters are optional
containerlication->add($command);

```

Command:

```
php console mycommand theargument --verbose

```

\##Command methods

Get the services container

```
$this->getContainer();

```

Call another command

```
$this->call('another-command', $arguments=[]);

```

Call another command silently (no output)

```
$this->callSilent('another-command', $arguments=[]);

```

Ask for confirmation

```
$this->confirm('Are you sure?');

```

Display an information

```
$this->info('A message');

```

Display an error

```
$this->error('A message');

```

Display a comment

```
$this->comment('A message');

```

Display a question

```
$this->question('A message');

```

\##Application methods

```
$container = $this->getContainer();

```

\###Contributing

Please submit all issues and pull requests to the [asgardphp/asgard](http://github.com/asgardphp/asgard) repository.

### License

[](#license)

The Asgard framework is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

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.

###  Release Activity

Cadence

Every ~204 days

Total

4

Last Release

3657d ago

PHP version history (2 changes)v0.1.0PHP &gt;=5.4.0

v0.3.0PHP &gt;=5.5.9

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/352850?v=4)[leyou](/maintainers/leyou)[@leyou](https://github.com/leyou)

---

Top Contributors

[![h0gar](https://avatars.githubusercontent.com/u/439138?v=4)](https://github.com/h0gar "h0gar (39 commits)")

### Embed Badge

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

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

###  Alternatives

[phan/phan

A static analyzer for PHP

5.6k11.2M1.1k](/packages/phan-phan)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-soap/wsdl

Deals with WSDLs

173.5M12](/packages/php-soap-wsdl)[php-soap/wsdl-reader

A WSDL reader in PHP

212.3M9](/packages/php-soap-wsdl-reader)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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