vpa/frames-console
最新稳定版本:v0.4.0
Composer 安装命令:
composer require vpa/frames-console
包简介
Beauty frames for text objects in CLI console
README 文档
README
Frames-console
A flexible set of components that allow you to frame various content in the console. Supports the display of text, block elements and tables, including nested ones.
Install
composer require vpa/frames-console
Get Started
If you want to display multiple elements - we recommend using the Page root element. You can initialize the first element yourself:
use VPA\Console\Shell;
use VPA\Console\FrameConsoleConfig;
use VPA\Console\Glyphs\Page;
require_once(__DIR__ . '/../vendor/autoload.php');
$shell = new Shell();
$config = new FrameConsoleConfig($shell);
$page = new Page($config);
or use DI Container:
use VPA\DI\Container;
use VPA\Console\FrameConsoleConfig;
use VPA\Console\Glyphs\Page;
require_once(__DIR__ . '/../vendor/autoload.php');
$di = new Container();
$di->registerContainers([
'VPA\Console\FrameConfigInterface' => FrameConsoleConfig::class,
]);
$page = $di->get(Page::class);
Documentation
Base elements:
Components:
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: AGPL-3.0-or-later
- 更新时间: 2022-09-04