PHPackages                             hoathis/symfony-console-bridge - 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. hoathis/symfony-console-bridge

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

hoathis/symfony-console-bridge
==============================

The Hoa\\Console to Symfony\\Console bridge.

1.15.01.06(11y ago)212.4k41BSD-3-ClausePHPPHP &gt;=5.3.3

Since Sep 19Pushed 11y ago8 watchersCompare

[ Source](https://github.com/hoaproject/Contributions-Symfony-ConsoleBridge)[ Packagist](https://packagist.org/packages/hoathis/symfony-console-bridge)[ Docs](http://hoa-project.net/)[ RSS](/packages/hoathis-symfony-console-bridge/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (3)Used By (1)

[![Hoa](https://camo.githubusercontent.com/b6460899aaa9a8910aa9331b036ef417b11c8f783d7c4de02a218d221fcae46e/687474703a2f2f7374617469632e686f612d70726f6a6563742e6e65742f496d6167652f486f615f736d616c6c2e706e67)](https://camo.githubusercontent.com/b6460899aaa9a8910aa9331b036ef417b11c8f783d7c4de02a218d221fcae46e/687474703a2f2f7374617469632e686f612d70726f6a6563742e6e65742f496d6167652f486f615f736d616c6c2e706e67)

Hoa is a **modular**, **extensible** and **structured** set of PHP libraries. Moreover, Hoa aims at being a bridge between industrial and research worlds.

Hoathis\\SymfonyConsoleBridge [![Build Status](https://camo.githubusercontent.com/266095d8783bc769f97be0020f6a92f036ebeb58917cae46972bf446bd37288c/68747470733a2f2f7472617669732d63692e6f72672f686f6170726f6a6563742f436f6e747269627574696f6e732d53796d666f6e792d436f6e736f6c654272696467652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/hoaproject/Contributions-Symfony-ConsoleBridge)
=======================================================================================================================================================================================================================================================================================================================================================================================================

[](#hoathissymfonyconsolebridge-)

- [Installation](#installation)
- [How to use](#how-to-use)
    - [Symfony](#symfony)
    - [Output](#output)
    - [Formatter](#formatter)
    - [Helpers](#helpers)
        - [Window](#window)
        - [Cursor](#cursor)
        - [Readline](#readline)
        - [Pager](#pager)
        - [Tput](#tput)

*All the examples in this readme are available and working in the [test application](http://central.hoa-project.net/Resource/Contributions/Symfony/ConsoleBridge/Tests/Functionals).*

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

[](#installation)

With [Composer](http://getcomposer.org/), to include this library into your dependencies, you need to require [`hoathis/symfony-console-bridge`](https://packagist.org/packages/hoathis/symfony-console-bridge):

```
{
    "require": {
        "hoathis/symfony-console-bridge": "~1.0"
    }
}
```

Please, read the website to [get more informations about how to install](http://hoa-project.net/Source.html).

Finally, install dependencies:

```
$ composer update hoathis/symfony-console-bridge
```

How to use
----------

[](#how-to-use)

### Symfony

[](#symfony)

To use this library with the [Symfony](http://symfony.com) framework, please use the dedicated bundle: [`hoathis/symfony-console-bundle`](http://central.hoa-project.net/Resource/Contributions/Symfony/ConsoleBundle/).

### Output

[](#output)

`Hoathis\SymfonyConsoleBridge\Output\ConsoleOutput` is an alternative to the native `ConsoleOutput` which is able to detect output type and automatically configure verbosity and text decoration.

Let's have the following command:

```
