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

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

deminy/shellwrap
================

Use any command-line tool as a PHP function.

0.4.1(12y ago)01.4k1MITPHPPHP &gt;=5.3.0

Since Oct 15Pushed 3y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (8)Used By (1)

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)

```
