Inquirer.js clone but for PHP.

Overview

inquirer-php (immature)

Code Coverage Badge

This aims to be something equivalent-ish to Inquirer.js or python-inquirer.

Status

This is in a very immature status — please do not use in anything serious (yet).

Usage

<?php

namespace Aaron\InquirerPhp;

require_once __DIR__ . '/../vendor/autoload.php';

$cli = new Cli();

$questions = [
    new Question\Text('name', 'What\'s your name?'),
    new Question\Confirm('continue', 'Should we continue?'),
    new Question\Select('tshirt_size', 'What\'s your t-shirt size?', ['s', 'm', 'l', 'xl']),
];

$answers = $cli->prompt($questions);

var_dump($answers);
You might also like...
      Disclaimer: The documentation of this plugin is English at the moment, but I might go for Latin later down the line, just for the fun of it.
Disclaimer: The documentation of this plugin is English at the moment, but I might go for Latin later down the line, just for the fun of it.

Quiritibus Plugin This repository is storing the custom plugin developed for the Quiritibus Latin Magazine website, currently being developed at: http

Magento commands to find translations that are present in one CSV file but not in another, and to translate CSV dicts with DeepL
Magento commands to find translations that are present in one CSV file but not in another, and to translate CSV dicts with DeepL

Hyvä Themes - Magento translation CSV comparison command hyva-themes/magento2-i18n-csv-diff This module adds the bin/magento i18n:diff-csv and i18n:tr

A simple but scalable FFA Practice Core featuring one Game Mode & Vasar PvP aspects.
A simple but scalable FFA Practice Core featuring one Game Mode & Vasar PvP aspects.

A simple but scalable FFA Practice Core featuring one Game Mode & Vasar PvP aspects. An example of this Plugin can be found in-game at ganja.bet:19132!

Plateforme de la communauté Devscast dans le but d'apprendre, échanger et réseauter

Devscast Community Platform The Devscast Community Platform is for those who want to impact the community by creating content around their passions, s

🦭 Kirby, but headless only – KQL with bearer token, Express-esque middlewares & more

Kirby Headless Starter ℹ️ Send a Bearer test authorization header with a request to the live playground to test this headless starter. This starter ki

Custom torn signatures, like cheds ones, but with your own graphics.

torn-custom-signatures Basic Live signature creation script for Torn. Prerequesites: A file containing the apikeys in an array named as FACTION_ID-api

The Current US Version of PHP-Nuke Evolution Xtreme v3.0.1b-beta often known as Nuke-Evolution Xtreme. This is a hardened version of PHP-Nuke and is secure and safe. We are currently porting Xtreme over to PHP 8.0.3
The Current US Version of PHP-Nuke Evolution Xtreme v3.0.1b-beta often known as Nuke-Evolution Xtreme. This is a hardened version of PHP-Nuke and is secure and safe. We are currently porting Xtreme over to PHP 8.0.3

2021 Nightly Builds Repository PHP-Nuke Evolution Xtreme Developers TheGhost - Ernest Allen Buffington (Lead Developer) SeaBeast08 - Sebastian Scott B

A sampling profiler for PHP written in PHP, which reads information about running PHP VM from outside of the process.

Reli Reli is a sampling profiler (or a VM state inspector) written in PHP. It can read information about running PHP script from outside of the proces

PHP Meminfo is a PHP extension that gives you insights on the PHP memory content

MEMINFO PHP Meminfo is a PHP extension that gives you insights on the PHP memory content. Its main goal is to help you understand memory leaks: by loo

Owner
Aarón Fas
Apprentice of everything, time obsessed, programming lover and [...] a little geek.
Aarón Fas
This is a Native PHP MVC. If you will build your own PHP project in MVC with router, you can clone this ready to use MVC pattern repo.

Welcome to PHP-Native-MVC-Pattern ?? If you will build your own PHP project in MVC with router, you can clone this ready to use MVC pattern repo. Work

null 2 Jun 6, 2022
This is a clone of Discord's homepage built using Wordpress.

Discord-UI-Clone Description This is a clone of Discord's homepage built using Wordpress, it is configured to run on the Pantheon platform. Live Demo

Abir Bouhriz Daidj 8 Aug 21, 2022
Clone do site ingresso.com

About Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experie

Guilherme Caraciolo 2 Dec 28, 2021
Twitter Clone API Rest with Laravel 9

TW Main API (Twitter Clone) Setup Installation Before docker-compose up Get copy the .env.example to .env Set Mail variables Set Pusher Variables with

Jesus Eduardo 0 Jul 31, 2022
Traits used primarily in the v6 package but also available as a helper package for applications

Phalcon Traits This package contains traits with methods that are used for Phalcon v6 onward. It can also be useful to others that want short snippets

The Phalcon PHP Framework 5 Oct 7, 2022
A new plugin like EconomyAPI but with a different mode

A new plugin like EconomyAPI but with a different mode

null 1 Dec 13, 2021
This is wegare tools but all-in-one installer only, exclude GUI

All In One Installer for Wegare Tools This is wegare tools, but this is all-in-one. Here is the source https://github.com/wegare123?tab=repositories I

Helmi Amirudin 3 Jul 29, 2022
A simple but extensible economy engine for PocketMine-MP, using label-oriented APIs.

Capital A simple but very extensible economy plugin for PocketMine-MP. How is Capital different from other economy plugins? Capital introduces a label

Jonathan Chan Kwan Yin 37 Dec 19, 2022
Wordpress Plugin Boilerplate but Powered with examples and a generator!

WordPress Plugin Boilerplate Powered WordPress Plugin Boilerplate Powered is a complete foundation for building your WordPress plugins following PSR-4

WordPress Plugin Boilerplate Powered 604 Dec 24, 2022
A simple way to know if you are on the list of major security breaches like "HIBP", but it is specific for Iran.

Leakfa.com A simple way to know if you are on the list of major security breaches like "HIBP", but it is specific for Iran. Service content This produ

Leakfa 100 Nov 20, 2022