1. Go to this page and download the library: Download corex/terminal 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/ */
corex / terminal example snippets
$climate = Console::climate();
$climate->...
// Get width of terminal.
$width = Console::getTerminalWidth();
// Get height of terminal.
$height = Console::getTerminalHeight();
// Show error message(s).
Console::error($messages);
// Show simple message(s) with no styling.
Console::out($messages);
// Show info message(s).
Console::info($messages);
// Show shout message(s).
Console::shout($messages);
// Show warning message(s) in cyan.
Console::warning($messages);
// Show table with option to set new headers.
Console::table(array $rows, array $headers = []);
// Show separator (default length = 80. Can be changed through setLineLength*).
Console::separator($character = '-');
// Show header (title through ::info() followed by ::separator('=')).
Console::header($title);
// Show properties in a table with properties at the left.
Console::properties(array $properties, $separator = ':');
// Show list of words (same as implode($separator, $words)).
Console::words(array $words, $separator = ', ');
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.