roxblnfk / clitube
This package is abandoned and no longer maintained.
The author suggests using the clitube/clitube package instead.
CliTube is data viewer in console
0.3.4
2023-07-30 00:42 UTC
Requires
- php: ^8.1
- psr/event-dispatcher: ^1.0
- symfony/console: >=4
- yiisoft/injector: ^1.1
Requires (Dev)
- mockery/mockery: ^1.5
- phpunit/phpunit: ^9.5.25
- vimeo/psalm: 5.2
README
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 clitube/clitube
Examples
Paginator Component
$core = (new \CliTube\Core($output)) $core->createComponent(\CliTube\Component\Paginator::class, [ new MyPaginator(), // Instanceof \CliTube\Data\Paginator ]) $core->run();
Navigation
A wide table scrolling
Scroll Component
$core = (new \CliTube\Core($output)) $core->createComponent(\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.