GitLab.com & Github WebHooks system with PHP and YAML.

dev-master 2017-12-23 15:47 UTC

This package is not auto-updated.

Last update: 2022-05-14 15:24:50 UTC


Gitlab.com & GitHub WebHooks system with PHP and YAML.

Created By Sem Schilder Forked from Florian Beer (which forked from Maxime Valette's webhooks).


  1. Clone the repo: git clone git@github.com:xvilo/webhooks
  2. Install packages: composer install
  3. Copy the config.php.dist file to config.php and customize it
  4. Add a virtual host pointing to public/

All set! You just have to add a custom WebHook in the Service Hooks of your Gitlab.com or GitHub repositories, pointing to public/hooks.php.

Hooks file

The whole point of this script is that you can add custom hooks file specific to GitHub repositories.

It's a simple YAML file that looks like this:

  - john@acmewebsite.com
  - /usr/local/bin/composer install
  - php artisan migrate --env=production

So you can easily add or remove commands executed after every push.