PhpRepos CLI Package has a set of useful functions to work with CLI. You can use these functions to interact with CLI.
You can simply install this package using phpkg
by running the following command:
phpkg add git@github.com:php-repos/cli.git
All documents can be found under documentations