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

Abandoned → [contributte/console](/?search=contributte%2Fconsole)Library[CLI &amp; Console](/categories/cli)

simplette/console
=================

Simple bridge for Nette Framework and Symfony Console.

v0.1.1(9y ago)018MITPHPPHP &gt;=5.6

Since Feb 23Pushed 9y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

Simplette / Console
===================

[](#simplette--console)

[Symfony Console](https://github.com/symfony/console) is probably the most common console component for PHP language. Thank to this library, you can simply use it in [Nette Framework](https://github.com/nette/nette) with composer command.

This library was inspired by [Symfony Console](https://github.com/symfony/console) implementation by [Kbyby](https://github.com/kdyby/console) and [Joseki](https://github.com/joseki/console).

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

[](#requirements)

This library requires PHP 5.6 or higher. [Simplette Console](https://github.com/simplette/console) library is designed for [Nette Framework](https://github.com/nette/nette) version 2.4 and higher.

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

[](#installation)

The best way to install this library is using [Composer](http://getcomposer.org/):

```
$ composer require simplette/console
```

Documentation
-------------

[](#documentation)

Firstly, register extension `Simplette\Console\DI\ConsoleExtension`. For more information about configuration see the class definition. This library is meant to be simply as possible. However, some features would be added in the future, so [stay tuned](https://github.com/joseki/console).

```
extension:
    console: Simplette\Console\DI\ConsoleExtension
```

This console implementation support also `debugMode` and correct setting of it. For this support, you have to call `Simplette\Console\DI\BootstrapHelper::setupMode` in your `app/bootstrap.php`.

Callable is used for the web environment setting. In the console commands, the mode is set by checking of the `--debug` parameter. For compatibility, there is defined more parameters that can turn on debug mode.

```
