mirror of
https://github.com/pierre42100/comunic
synced 2024-11-27 07:49:28 +00:00
16 lines
295 B
PHP
16 lines
295 B
PHP
<?php
|
|
|
|
require __DIR__.'/../vendor/autoload.php';
|
|
|
|
echo 'Say hello (visible): ';
|
|
|
|
$answer = Seld\CliPrompt\CliPrompt::prompt();
|
|
|
|
echo 'You answered: '.$answer . PHP_EOL;
|
|
|
|
echo 'Say hello (hidden): ';
|
|
|
|
$answer = Seld\CliPrompt\CliPrompt::hiddenPrompt();
|
|
|
|
echo 'You answered: '.$answer . PHP_EOL;
|