Skip to content

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.

Notifications You must be signed in to change notification settings

zolll23/frames-console

Repository files navigation

Frames-console

Latest Stable Version Latest Unstable Version License PHP Version Require Scrutinizer Code Quality Code Coverage Build Status Code Intelligence Status

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:

  1. Text element
  2. DIV element
  3. Table element

Components:

  1. Table1D element

About

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.

Topics

Resources

Stars

Watchers

Forks

Languages