volta-framework/component-cli

Provide helpers for a simple CLI script

v0.9.0-beta 2023-07-01 12:03 UTC

This package is auto-updated.

Last update: 2024-05-24 06:49:53 UTC


README

Features

  • Static Helpers for simple PHP CLI scripts
  • Methods for markup and formating output
  • Wrapper for PHP getopt()

Examples

To run the examples open a terminal and make the examples directory your current working directory.Then execute one of the example files passing the file to the PHP CLI executable. Optionally add the option -h(--help) to get information on the available options.

$: php format.php
$: php format.php --help