Make console calls in php and read output with colors
<p>In my php code I want to make console calls (e.g. 'git diff') via <code>exec()</code>, or <code>proc*</code> functions.</p>

<p>Is there any method to capture their output with colors?</p>

<hr>

<p>Found a method: <a href="https://stackoverflow.com/a/35011507/2450729">https://stackoverflow.com/a/35011507/2450729</a></p>