Universeorange.com/Docs/

R3m/framework Features Cli class

The Cli class has at the moment 2 methods: read & tput.
There are currently 4 plugins available which utilizes the Cli class.

Methods:

read:

To read from the terminal: Where input is the default input. Where username is the text to display.

Cli::read('input', 'username')

To read hidden input from the terminal (like passwords): Where input-hidden is the type of input. Where password is the text to display.

Cli::read('input-hidden', 'passsword')

tput:

Tput has a few options:

Cli::tput(String $tput='', Array $arguments=[]);

Plugins:

{terminal.color($color, $background)}

Where color & background is:

{$input = terminal.readline($text)}
{terminal.tput($command, $arguments)}

Get the current user id your php project is using:

{terminal.user.id()}
Last modified: 2021-06-07

© 2021 universeorange.com