Skip to content

Instantly share code, notes, and snippets.

@RyanThompson
Created August 31, 2017 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RyanThompson/5647d65a3302faa41a905c0bbdebe6e5 to your computer and use it in GitHub Desktop.
Save RyanThompson/5647d65a3302faa41a905c0bbdebe6e5 to your computer and use it in GitHub Desktop.
$composerProcess = new Process('THE COMMAND');
$composerProcess->run(function ($type, $buffer) {
// $type is sketchy so use preg_match on the string to color / handle errors.
echo $buffer;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment