{"id":39444465,"url":"https://github.com/eddiriarte/console-select","last_synced_at":"2026-01-18T04:23:44.398Z","repository":{"id":56974898,"uuid":"119033147","full_name":"eddiriarte/console-select","owner":"eddiriarte","description":"A fancy selection interface for symfony's console component.","archived":false,"fork":false,"pushed_at":"2022-08-04T16:00:23.000Z","size":112,"stargazers_count":12,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-22T01:24:18.453Z","etag":null,"topics":["cli","laravel","laravel-zero","symfony"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eddiriarte.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-26T09:33:01.000Z","updated_at":"2024-05-31T13:37:00.000Z","dependencies_parsed_at":"2022-08-21T11:50:54.296Z","dependency_job_id":null,"html_url":"https://github.com/eddiriarte/console-select","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/eddiriarte/console-select","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddiriarte%2Fconsole-select","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddiriarte%2Fconsole-select/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddiriarte%2Fconsole-select/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddiriarte%2Fconsole-select/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eddiriarte","download_url":"https://codeload.github.com/eddiriarte/console-select/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddiriarte%2Fconsole-select/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28529507,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","laravel","laravel-zero","symfony"],"created_at":"2026-01-18T04:23:44.312Z","updated_at":"2026-01-18T04:23:44.384Z","avatar_url":"https://github.com/eddiriarte.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Console-Selection\n\nA fancy selection interface for symfony's console component.\n\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/eddiriarte/console-select/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/eddiriarte/console-select/?branch=master)\n[![Code Coverage](https://scrutinizer-ci.com/g/eddiriarte/console-select/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/eddiriarte/console-select/?branch=master)\n[![Build Status](https://scrutinizer-ci.com/g/eddiriarte/console-select/badges/build.png?b=master)](https://scrutinizer-ci.com/g/eddiriarte/console-select/build-status/master)\n\n![gluten-free](http://forthebadge.com/images/badges/gluten-free.svg)\n![built-by-developers](http://forthebadge.com/images/badges/built-by-developers.svg)\n![check-it-out](http://forthebadge.com/images/badges/check-it-out.svg)\n\n![Sample](docs/sample.gif)\n\n## Requirements \n\nThis project is inteded to be runned with one of this frameworks:\n\n- laravel 5.6+\n- symfony 5.0+\n- laravel-zero 5.6+\n\n\n## Install\n\n```sh\ncomposer require eddiriarte/console-select\n```\n\n### On Laravel/Laravel-Zero\n\nAdd the `SelectServiceProvider` to your provider list\n\n```php\n// app.php\n'providers' =\u003e [\n    EddIriarte\\Console\\Providers\\SelectServiceProvider::class,\n],\n```\n\n### On Symfony\n\nAdd the `EddIriarte\\Console\\Traits\\SelectableInputs` trait to your command class\n\n```php\n# importing : \\EddIriarte\\Console\\Helpers\\SelectionHelper\n# pasing the input and output interfaces\n$this-\u003egetHelperSet()-\u003eset(\n  new SelectionHelper($this-\u003einput, $this-\u003eoutput)\n);\n```\n\n## Checkboxes\n\nUseful when you need several answers from the user.\n\n```php\n$selected = $this-\u003eselect(\n  'Select characters that appeared in \"Star Wars,  Episode I - The phantom menace\"',\n  [\n    'Ahsoka Tano',\n    'Anakin Skywalker',\n    'Boba Fett',\n    'Chewbacca',\n    'Count Dooku',\n    'Darth Maul',\n    'Darth Vader',\n    'Finn',\n    'Han Solo',\n    'Jabba the Hutt',\n    'Jar Jar Binks',\n    'Kylo Ren',\n    'Lando Calrissian',\n    'Luke Skywalker',\n    'Mace Windu',\n    'Obi-Wan Kenobi',\n    'Padmé Amidala',\n    'Sheev Palpatine',\n    'Poe Dameron',\n    'Princess Leia Organa',\n    'Qui-Gon Jinn',\n    'Rey',\n    'Watto',\n    'Yoda',\n  ]\n);\n```\n\n## Radio\n\nUseful when you need the user to pick only one anwer from the list.\n\n```php\n$selected = $this-\u003eselect(\n  'What is the name of the ancient Jedi master that lives at the swamps of Dagobah',\n  [\n    'Ahsoka Tano',\n    'Anakin Skywalker',\n    'Boba Fett',\n    'Chewbacca',\n    'Count Dooku',\n    'Darth Maul',\n    'Darth Vader',\n    'Finn',\n    'Han Solo',\n    'Jabba the Hutt',\n    'Jar Jar Binks',\n    'Kylo Ren',\n    'Lando Calrissian',\n    'Luke Skywalker',\n    'Mace Windu',\n    'Obi-Wan Kenobi',\n    'Padmé Amidala',\n    'Sheev Palpatine',\n    'Poe Dameron',\n    'Princess Leia Organa',\n    'Qui-Gon Jinn',\n    'Rey',\n    'Watto',\n    'Yoda',\n  ],\n  false // third argument(bool) that allows multiple selections (default: true)\n);\n```\n\n## Still to do\n\n- Handle user-interruptions, such as `Ctrl+C`\n\n## MIT License\n\nCopyright (c) 2018 Eduardo Iriarte\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feddiriarte%2Fconsole-select","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feddiriarte%2Fconsole-select","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feddiriarte%2Fconsole-select/lists"}