Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dmouse/select-helper


https://github.com/dmouse/select-helper

Last synced: 1 day ago
JSON representation

Awesome Lists containing this project

README

        

![Symfony Console Select Helper](http://i.giphy.com/3oEdv5Uj1b6k5ilDzi.gif "Symfony Console Select Helper")

# Select Helper
This component provide a select helper to the symfony/console

## How to use
Include in your composer.json
```bash
$ composer require dmouse/select-helper
```
Create a new instance from the select helper class

```php
// ...
$select = new \Dmouse\Console\Helper\SelectHelper($output);
$select->setOptions([
"option 1",
"option 2",
"option 3"
]);
$option = $select->runSelect();
// ...
```
See more in https://github.com/dmouse/select-helper/blob/master/console.php

# Development