dmouse/select-helper

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Create a select options list with Symfony/console.

0.1 2015-11-26 04:34 UTC

This package is auto-updated.

Last update: 2021-07-23 22:42:06 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