mileschou/pherm
Composer 安装命令:
composer require mileschou/pherm
包简介
A command line terminal utility in PHP
关键字:
README 文档
README
This repo is fork from
php-school/terminal
Small utility to help provide a simple, consist API for terminal interaction.
See examples to know how to use.
Usage
Hello world example:
$container = new Container(); $container->instance(Input::class, new InputStream()); $container->instance(Output::class, new OutputStream()); $terminal = (new Terminal($container)) ->enableInstantOutput() ->bootstrap(); $terminal->clear(); $str = 'Hello world!'; $terminal->cursor()->center(-(mb_strlen($str) / 2))->write($str); $terminal->cursor()->bottom();
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 73
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 4
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-06-22