piotrpress/executor

This library is an object wrapper for an exec PHP function.

v1.0.0 2021-09-02 16:11 UTC

This package is auto-updated.

Last update: 2024-10-29 06:06:22 UTC


README

This library is an object wrapper for an exec PHP function.

Installation

composer require piotrpress/executor

Usage

require __DIR__ . '/vendor/autoload.php';

use PiotrPress;

$result = new Executor( 'ls' );

$result->getOutput();
$result->getReturn();
$result->isSuccess(); 
$result->isFailure();

echo $result;

Requirements

PHP >= 7.4 version.

License

GPL3.0