Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/piotrpress/executor

This library is an object wrapper for an exec PHP function.
https://github.com/piotrpress/executor

cli command command-line commandline exec execute execution executor

Last synced: 5 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# Executor

This library is an object wrapper for an [exec](https://www.php.net/manual/en/function.exec.php) PHP function.

## Installation

```console
composer require piotrpress/executor
```

## Usage

```php
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](license.txt)