open terminul in your project root directory and then run this command:
composer require arashabedii/commander
example:
require_once './vendor/autoload.php';
use ArashAbedii\Commander;
//run command in background
echo Commander::runInBg("php test.php");