CLI Package


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:

phpkg add


You can use CLI functions by importing the function directly:

use function PhpRepos\Cli\IO\Write\success;

function my_function() {
    success('This is a success message.');

Or importing the file you need to use:

use PhpRepos\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: