Download the PHP package gnello/webhook-manager without Composer
On this page you can find all versions of the php package gnello/webhook-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package webhook-manager
WebhookManager
WebhookManager easily associates one or more actions with a specific repository event using webhooks.
Services supported: Bitbucket, Github, TravisCI and every custom service.
Installation
It's highly recommended to use composer to install WebhookManager:
Read more about how to install and use Composer on your local machine here.
Configuration
On Bitbucket
- Go to the settings of your repository
- Click on "Webhooks" under "Workflow"
- Click on "Add webhook"
- Enter the url of WebhookManager configured on your server (es. https://mysite.com/webhooks)
- Set the triggers
- Save!
On Github
- Go to the settings of your repository
- Click on "Webhooks" under "Options"
- Click on "Add webhook"
- Enter the url of WebhookManager configured on your server (es. https://mysite.com/webhooks)
- Set the content type on
application/json
- Set the events
- Save!
On TravisCI
Add this in your .travis.yml
file:
On custom service
This is up to you!
Usage
WebhookManager usage is very simple:
Bitbucket
Github
TravisCI
Custom service
To use a custom service, you should create a class that implements the interface and then register it on WebhookManager. In WebhookManager options, you should specify that you want to use a custom service.
Options
-
Bitbucket is the default service, but you can change it as follows:
- The json_decode of Bitbucket and Github services is set to convert the returned objects into associative arrays. You can change this behavior in this way:
Contact
All versions of webhook-manager with dependencies
ext-json Version *