Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/piotrpress/executor
- Owner: PiotrPress
- License: gpl-3.0
- Created: 2021-09-02T16:09:02.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-09-02T16:12:19.000Z (about 3 years ago)
- Last Synced: 2024-04-24T23:42:24.314Z (7 months ago)
- Topics: cli, command, command-line, commandline, exec, execute, execution, executor
- Language: PHP
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.txt
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)