• This repository has been archived on 11/Nov/2022
  • Stars
    star
    1
  • Language
    PHP
  • License
    MIT License
  • Created over 2 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

CLI Tube

The package will help you to render paginated tables and any plain text content in a console.

Requirements

Make sure that your server is configured with following PHP version and extensions:

  • PHP 8.1+

Installation

You can install the package via composer:

composer require roxblnfk/clitube

Examples

Paginator Component

$core = (new \Roxblnfk\CliTube\Core($output))
$core->createComponent(\Roxblnfk\CliTube\Component\Paginator::class, [
    new MyPaginator(), // Instanceof \Roxblnfk\CliTube\Data\Paginator
])
$core->run();

Scroll Component

$core = (new \Roxblnfk\CliTube\Core($output))
$core->createComponent(\Roxblnfk\CliTube\Component\Scroll::class, [
    'content' => 'Very long text',
    'overwrite' => true,
])
$core->run();

Testing

composer test

License

The MIT License (MIT). Please see License File for more information.