{"repo":"wp-cli/php-cli-tools","free":true,"listed":false,"github":"https://github.com/wp-cli/php-cli-tools","clone":"git clone https://github.com/wp-cli/php-cli-tools.git","description":"A collection of tools to help with PHP command line utilities","language":"PHP","stars":681,"topics":["cli","command-line","wp-cli","hacktoberfest"],"license":"MIT","category":"cli-tools","readme_excerpt":"PHP Command Line Tools ====================== A collection of functions and classes to assist with command line development. Requirements PHP = 5.6 Suggested PHP extensions mbstring - Used for calculating string widths. Function List ------------- cli\\out($msg, ...) cli\\out padded($msg, ...) cli\\err($msg, ...) cli\\line($msg = '', ...) cli\\input() cli\\prompt($question, $default = false, $marker = ':') cli\\choose($question, $choices = 'yn', $default = 'n') cli\\menu($items, $default = false, $title = 'Choose an Item') Progress Indicators ------------------- cli\\notify\\Dots($msg, $dots = 3, $interval = 100) cli\\notify\\Spinner($msg, $interval = 100) cli\\progress\\Bar($msg, $total, $interval = 100) Tabular Display --------------- cli\\Table:: construct(array $headers = null, array $rows = null) cli\\Table::setHeaders(array $headers) cli\\Table::setRows(array $rows) cli\\Table::setRenderer(cli\\table\\Renderer $renderer) cli\\Table::addRow(array $row) cli\\Table::sort($column) cli\\Table::display() The display function will detect if output is piped and, if it is, render a tab delimited table instead of the ASCII table rendered for visual display. You can also explicitly set the renderer used by calling cli\\Table::setRenderer() and giving it an instance of one of the concrete cli\\table\\Renderer classes. Tree Display ------------ cli\\Tree:: construct() cli\\Tree::setData(array $data) cli\\Tree::setRenderer(cli\\tree\\Renderer $renderer) cli\\Tree::render() cli\\Tree::display() Argument Parser ------","default_branch":null,"files":null,"tree":[],"storefront":"/r/wp-cli","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/wp-cli/php-cli-tools/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}