PHP code example of roxblnfk / clitube
1. Go to this page and download the library: Download roxblnfk/clitube library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
roxblnfk / clitube example snippets
$core = (new \CliTube\Core($output))
$core->createComponent(\CliTube\Component\Paginator::class, [
new MyPaginator(), // Instanceof \CliTube\Data\Paginator
])
$core->run();
$core = (new \CliTube\Core($output))
$core->createComponent(\CliTube\Component\Scroll::class, [
'content' => 'Very long text',
'overwrite' => true,
])
$core->run();