This library is an object wrapper for an exec PHP function.
composer require piotrpress/executor
require __DIR__ . '/vendor/autoload.php';
use PiotrPress;
$result = new Executor( 'ls' );
$result->getOutput();
$result->getReturn();
$result->isSuccess();
$result->isFailure();
echo $result;
PHP >= 7.4
version.