Saeghe is a difficult name to pronounce. Therefore, Saeghe project has been renamed to phpkg.
This website no longer receives updates.
Please visit phpkg website at phpkg.com
CLI Package has a set of useful functions to work with CLI. You can use these functions to interact with CLI.
This package uses the php-mbstring
extension. Make sure you have this extension installed.
You can simply install this package by running the following command:
saeghe add https://github.com/saeghe/cli.git
You can use CLI functions by importing the function directly:
use function Saeghe\Cli\IO\Write\success;
function my_function() {
success('This is a success message.');
}
Or importing the file you need to use:
use Saeghe\Cli\IO\Write;
function my_function() {
Write\success('This is a success message.');
}
CLI Package is consist of several functions that are separated under these libraries: