dmouse/select-helper

Create a select options list with Symfony/console.

0.1 2015-11-26 04:34 UTC

This package is auto-updated.

Last update: 2024-11-24 06:01:43 UTC


README

Symfony Console Select Helper

Select Helper

This component provide a select helper to the symfony/console

How to use

Include in your composer.json

$ composer require dmouse/select-helper

Create a new instance from the select helper class

  // ...
  $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