PHPackages                             ivol/exec-wrapper - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. ivol/exec-wrapper

ActiveLibrary[CLI &amp; Console](/categories/cli)

ivol/exec-wrapper
=================

Allows to execute applications from command line.

v1.0.0-RC1(9y ago)0535↓100%MITPHPPHP &gt;=5.4.0

Since May 25Pushed 9y ago1 watchersCompare

[ Source](https://github.com/ivol84/exec_wrapper)[ Packagist](https://packagist.org/packages/ivol/exec-wrapper)[ RSS](/packages/ivol-exec-wrapper/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (2)Used By (0)

exec-wrapper
============

[](#exec-wrapper)

[![Latest Stable Version](https://camo.githubusercontent.com/d6820a62423f07bbbbae9ef0a8b1e1724916fcdc66b9448bab9bd727d3f33619/68747470733a2f2f706f7365722e707567782e6f72672f69766f6c2f657865632d777261707065722f762f737461626c65)](https://packagist.org/packages/ivol/exec-wrapper)[![Build Status](https://camo.githubusercontent.com/295e1d02306a2c4b66aac198aae8fbba28008068eeca2df20de9e2c3d816aac0/68747470733a2f2f7472617669732d63692e6f72672f69766f6c38342f657865635f777261707065722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ivol84/exec_wrapper)[![Code Coverage](https://camo.githubusercontent.com/db3fc3a0a20ef739946c17ca0eccdcdebe8a6681de746d3a0b728d4a72cb7bc7/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f69766f6c38342f657865635f777261707065722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ivol84/exec_wrapper/?branch=master)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/63bc26f6f27296dfc7513bb3dabc2f4994a7b84354f125330beb11141d5840db/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f69766f6c38342f657865635f777261707065722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ivol84/exec_wrapper/)[![Total Downloads](https://camo.githubusercontent.com/c68d1973b0ce1f4124f6dcbc14b90cc85a39bb0691ecc7ce2becdf35e554ce88/68747470733a2f2f706f7365722e707567782e6f72672f69766f6c2f657865632d777261707065722f646f776e6c6f616473)](https://packagist.org/packages/ivol/exec-wrapper)

Execution wrapper is extension implements execution of external application in OOP way. Also allows to add listener before and after execution.

Installation
------------

[](#installation)

Add exec-wrapper to your [Composer](https://getcomposer.org/doc/00-intro.md) project:

```
composer require ivol/exec-wrapper
```

Usage
-----

[](#usage)

It is really simple:

```

// Autoload here
use ivol/ExecutionWrapper;

$wrapper = new ExecutionWrapper();
$result = $wrapper->execute('echo %s', ['123']);
if ($result->getReturnCode() == 0) {
    echo('Success');
} else {
    echo('Failure');
}
echo($result->getOutput());

```

If you want to use Event System then you should configure event dispatcher:

```
...
$dispatcher = $wrapper->getEventDispatcher();
$dispatcher->addSubscriber(...);
$dispatcher->addListener(...);
...

```

For more information about event dispatcher see [The EventDispatcher Component](http://symfony.com/doc/3.0/components/event_dispatcher/introduction.html).

For additional examples see [ExecutionWrapperIntegrationTest](https://github.com/ivol84/exec_wrapper/blob/master/tests/src/ExecutionWrapperIntegrationTest.php).

Configuration:
--------------

[](#configuration)

You can configure behaviour of args and command escaping by passing config array to ExecWrapper.

For configuration option names please see [ExecWrapperConfiguration](https://github.com/ivol84/exec_wrapper/blob/master/src/Config/ExecWrapperConfiguration.php).

License
-------

[](#license)

exec-wrapper is released under the MIT License.

###  Health Score

23

—

LowBetter than 30% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3588d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/92f802beb5960e9d649db4cbb8ee7ae43b2be1a26cad2cab761cc2ac3538f59b?d=identicon)[ivol](/maintainers/ivol)

---

Top Contributors

[![ivol84](https://avatars.githubusercontent.com/u/1837943?v=4)](https://github.com/ivol84 "ivol84 (35 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ivol-exec-wrapper/health.svg)

```
[![Health](https://phpackages.com/badges/ivol-exec-wrapper/health.svg)](https://phpackages.com/packages/ivol-exec-wrapper)
```

###  Alternatives

[drupal/console-core

Drupal Console Core

13514.7M11](/packages/drupal-console-core)[platformsh/cli

Platform.sh CLI

22937.9k](/packages/platformsh-cli)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
