Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dmouse/select-helper
https://github.com/dmouse/select-helper
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/dmouse/select-helper
- Owner: dmouse
- Created: 2015-11-20T17:50:45.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-22T23:52:36.000Z (almost 9 years ago)
- Last Synced: 2024-11-11T06:29:55.755Z (about 1 month ago)
- Language: PHP
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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