How to call shell programs as functions with PHP

I’m a big fan of Symfony’s Process Component. I’ve used intensively this component within a project and I noticed that I needed a wrapper to avoid to write again and again the same code.

http://gonzalo123.com/2012/11/19/allow-to-call-shell-programs-as-functions-with-php/