PHPackages                             mrrio/shellwrap - 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. mrrio/shellwrap

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

mrrio/shellwrap
===============

Use any command-line tool as a PHP function.

0.4.1(12y ago)738198.8k—5.2%54[6 issues](https://github.com/MrRio/shellwrap/issues)[3 PRs](https://github.com/MrRio/shellwrap/pulls)2MITPHPPHP &gt;=5.3.0

Since Oct 15Pushed 6mo ago34 watchersCompare

[ Source](https://github.com/MrRio/shellwrap)[ Packagist](https://packagist.org/packages/mrrio/shellwrap)[ Docs](http://github.com/MrRio/shellwrap)[ RSS](/packages/mrrio-shellwrap/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (8)Used By (2)

ShellWrap
=========

[](#shellwrap)

What is it?
-----------

[](#what-is-it)

It's a beautiful way to use powerful Linux/Unix tools in PHP. Easily and logically pipe commands together, capture errors as PHP Exceptions and use a simple yet powerful syntax. Works with any command line tool automagically.

Features
--------

[](#features)

- Flexible and sexy syntax.
- Exceptions are thrown if the executable returns an error.
- Paths to binaries are automatically resolved.
- All arguments are properly escaped.
- Callback functions for streaming output.

Examples
--------

[](#examples)

```
