All Projects β†’ wp-cli β†’ Php Cli Tools

wp-cli / Php Cli Tools

Licence: mit
A collection of tools to help with PHP command line utilities

Projects that are alternatives of or similar to Php Cli Tools

Fiddle
πŸš€ The easiest way to get started with Electron
Stars: ✭ 6,167 (+863.59%)
Mutual labels:  hacktoberfest
Frab
conference management system
Stars: ✭ 632 (-1.25%)
Mutual labels:  hacktoberfest
Jbang
Unleash the power of Java
Stars: ✭ 629 (-1.72%)
Mutual labels:  hacktoberfest
Git Extra Commands
A collection of git utilities and useful extra git scripts I've discovered or written, packaged for ease of use with shell frameworks.
Stars: ✭ 629 (-1.72%)
Mutual labels:  hacktoberfest
Cobalt2 Vscode
Cobalt2 Theme for VS Code
Stars: ✭ 632 (-1.25%)
Mutual labels:  hacktoberfest
Phansible
Phansible - generate Vagrant + Ansible dev environments for PHP
Stars: ✭ 633 (-1.09%)
Mutual labels:  hacktoberfest
Flutter Examples
[Examples] Simple basic isolated apps, for budding flutter devs.
Stars: ✭ 5,863 (+816.09%)
Mutual labels:  hacktoberfest
Valveresourceformat
πŸ”¬ Valve's Source 2 resource file format parser and decompiler
Stars: ✭ 638 (-0.31%)
Mutual labels:  hacktoberfest
Environs
simplified environment variable parsing
Stars: ✭ 631 (-1.41%)
Mutual labels:  hacktoberfest
Jaeger Operator
Jaeger Operator for Kubernetes simplifies deploying and running Jaeger on Kubernetes.
Stars: ✭ 634 (-0.94%)
Mutual labels:  hacktoberfest
Alexa media player
This is a custom component to allow control of Amazon Alexa devices in Home Assistant using the unofficial Alexa API.
Stars: ✭ 630 (-1.56%)
Mutual labels:  hacktoberfest
Fsharpx.extras
Functional programming and other utilities from the original "fsharpx" project
Stars: ✭ 631 (-1.41%)
Mutual labels:  hacktoberfest
Electionguard
ElectionGuard is a set of open source software components that can be used to create and publish end to end verifiable elections as well create a publishable artifact for ballot comparison audits.
Stars: ✭ 634 (-0.94%)
Mutual labels:  hacktoberfest
Octoprint
OctoPrint is the snappy web interface for your 3D printer!
Stars: ✭ 6,267 (+879.22%)
Mutual labels:  hacktoberfest
Wbot
A simple Web based BOT for WhatsAppβ„’ in NodeJS 😜. Working as of πŸ“… Feb 14th, 2020
Stars: ✭ 638 (-0.31%)
Mutual labels:  hacktoberfest
Marshmallow
A lightweight library for converting complex objects to and from simple Python datatypes.
Stars: ✭ 5,857 (+815.16%)
Mutual labels:  hacktoberfest
Faas Cli
Official CLI for OpenFaaS
Stars: ✭ 633 (-1.09%)
Mutual labels:  hacktoberfest
Sirix
SirixDB is a temporal, evolutionary database system, which uses an accumulate only approach. It keeps the full history of each resource. Every commit stores a space-efficient snapshot through structural sharing. It is log-structured and never overwrites data. SirixDB uses a novel page-level versioning approach called sliding snapshot.
Stars: ✭ 638 (-0.31%)
Mutual labels:  hacktoberfest
Hugodocs
The source for https://gohugo.io/
Stars: ✭ 637 (-0.47%)
Mutual labels:  hacktoberfest
Digispark Scripts
USB Rubber Ducky type scripts written for the DigiSpark.
Stars: ✭ 629 (-1.72%)
Mutual labels:  hacktoberfest

PHP Command Line Tools

Build Status

A collection of functions and classes to assist with command line development.

Requirements

  • PHP >= 5.3

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

Argument parsing uses a simple framework for taking a list of command line arguments, usually straight from $_SERVER['argv'], and parses the input against a set of defined rules.

Check examples/arguments.php for an example.

Usage

See examples/ directory for examples.

Todo

  • Expand this README
  • Add doc blocks to rest of code
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].