PHPackages                             asika/joomla-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. [Framework](/categories/framework)
4. /
5. asika/joomla-console

AbandonedArchivedJoomla-package[Framework](/categories/framework)

asika/joomla-console
====================

3rd Joomla Console Package

1.1.1(11y ago)04461[2 issues](https://github.com/asika32764/joomla-framework-console/issues)1GPL-2.0+PHPPHP &gt;=5.3.10

Since Jan 30Pushed 11y ago1 watchersCompare

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

READMEChangelog (3)Dependencies (3)Versions (4)Used By (1)

The Console Package
===================

[](#the-console-package)

The Joomla Console package provide an elegant and nested command structure for your cli application.

The Command Calling Flow
------------------------

[](#the-command-calling-flow)

If we type:

```
$ php cli/console.php command1 command2 command3 -a -b -cd --help
```

The command calling flow is:

```
rootCommand (console application)
    ->configure
    ->execute

    command1
        ->configure
        ->execute

        commend2
            ->configure
            ->execute

            commend3
                ->configure
                ->execute

            return exitCode

        return exitCode

    return exitCode

return exitCode

```

Initialising Console
--------------------

[](#initialising-console)

Console is extends from [AbstractCliApplication](https://github.com/joomla/joomla-framework/tree/staging/src/Joomla/Application#command-line-applications), help us create a command line application.

An example console application skeleton in `cli/console.php` file:

```
