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

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

anso/console
============

Console framework for training project.

06PHPCI failing

Since Apr 13Pushed 6y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Console framework for a training project.
-----------------------------------------

[](#console-framework-for-a-training-project)

Requirements
------------

[](#requirements)

PHP &gt;= 7.4

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

[](#installation)

[anso/console](https://github.com/VioletTrain/console) can be installed via [Composer](https://getcomposer.org).

```
composer require anso/console:dev-master
```

Usage
-----

[](#usage)

A few configuration files must be created and placed in a single folder before instantiating **Application** object and calling **start()** method:

- exception\_handler.php - must return instance of [ExceptionHandler](https://github.com/VioletTrain/contract/blob/master/src/ExceptionHandler.php)
- providers.php - must return array of [Providers](https://github.com/VioletTrain/contract/blob/master/src/Provider.php)that are used to register DI container's bindings.
- commands.php - must return instance of [CommandCollection](https://github.com/VioletTrain/console/blob/master/src/CommandCollection.php). It contains array of commands defined by key as name and string value as [Handler](https://github.com/VioletTrain/console/blob/master/src/Contract/CommandHandler.php)

Afterwards application can be started like this (/console.php):

```
