title: Reading a Git commit message from PHP
body: <p>I'm looking for a way to read a Git commit message with PHP. I suspect I need to use a Git hook, but I've never worked with them before, so I need a <em>push</em> in the right direction. Specifically, I'd like to implement the following process:</p>
  
  <ul>
  <li>A PHP script is executed automatically after every commit</li>
  <li>The script captures the Git username, the time of the commit, and the commit content</li>
  </ul>
  
  <p>If at all possible, I'd like to stick with pure PHP. If there are tutorials or references that you could point out, that would be a huge help.</p>