基础代码

This commit is contained in:
2021-02-26 22:23:13 +08:00
parent 7884df52f0
commit a719feebba
2585 changed files with 328263 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
<?php
require_once 'common.php';
$menu = array(
'output' => 'Output Examples',
'notify' => 'cli\Notify Examples',
'progress' => 'cli\Progress Examples',
'table' => 'cli\Table Example',
'colors' => 'cli\Colors example',
'quit' => 'Quit',
);
while (true) {
$choice = \cli\menu($menu, null, 'Choose an example');
\cli\line();
if ($choice == 'quit') {
break;
}
include "${choice}.php";
\cli\line();
}