layout: default title: Basic Usage
The out
method simply receives a string that will output on a new line:
require_once('vendor/autoload.php');
$climate = new League\CLImate\CLImate;
$climate->out('This prints to the terminal.');
The inline
method is the same as out
except it will not add a line break at the end of the line:
$climate->inline('Waiting');
for ($i = 0; $i < 10; $i++) {
$climate->inline('.');
}
// Waiting..........
And you can do that. But that's not very fun. What about adding some color? Formatting it a bit? Getting super fancy?