Created
August 31, 2017 17:24
-
-
Save RyanThompson/5647d65a3302faa41a905c0bbdebe6e5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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