Using php-github-webhook to automatically pull commits from github

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]

MongoObject – library that simplifies storing PHP objects in Mongo

MongoObject Overview

Today I released MongoObject package. It is a library that simplifies storing and fetching of object to/from Mongo database.

It is available on github: https://github.com/dintel/mongo-object

And it is also available on packagist: https://packagist.org/packages/dintel/mongo-object

Installation

Using composer:

$ composer require dintel/mongo-object
[Read More]