2017 © Pedro Peláez
 

library webhooks

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

image

florianbeer/webhooks

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

  • Tuesday, October 21, 2014
  • by florianbeer
  • Repository
  • 1 Watchers
  • 9 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

webhooks

Gitlab.com & GitHub WebHooks system with PHP and YAML., (*1)

Created by Florian Beer. Forked from Maxime Valette's webhooks., (*2)

Setup

  1. Clone the repo: git clone git@github.com:florianbeer/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 web/

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

Hooks file

The whole point of this script is that you can add custom hooks file specific to GitHub repositories., (*4)

It's a simple YAML file that looks like this:, (*5)

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

So you can easily add or remove commands executed after every push., (*6)

The Versions

21/10 2014

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires