volta-framework / component-cli
Provide helpers for a simple CLI script
v0.9.0-beta
2023-07-01 12:03 UTC
Requires
- php: >=8.1
This package is auto-updated.
Last update: 2025-04-24 08:59:27 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