Overview
php-github-webhook is a very simple class that allows pulling git commits from GitHub when they are pushed to it. This can be very useful when building continuous integration process or when you want to have some server with all latest commits pushed to GitHub.
How it works
GitHub provides a mechanism called Webhooks that allows calling some URL when certain event is triggered on your repository. Webhook is defined by URL that is called when event is triggered and a shared secret. Shared secret is used to allow script that runs behind the URL to check whether request comes from GitHub or not (shared secret is used by GitHub to sign request body using SHA1 HMAC algorithm, script can then check if request signed correctly by computing same hash using same algorithm).
[Read More]