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-10-24 05:45:54 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