This package is abandoned and no longer maintained. No replacement package was suggested.
v1.1.0 2018-12-12 15:56 UTC
GitHub Webhook using Zend Expressive (PHP)
composer create-project jbelien/github-webhook
config.php file in
config/application directory :
<?php return [ 'token' => 'your_webhook_token', 'endpoints' => [ [ 'repository' => 'jbelien/myrepo', 'branch' => 'master', // required for PUSH event 'run' => '', ], ], ];
your_webhook_tokenby the token you provided in your webhook settings (see hereunder) ;
jbelien/myrepoby your repository ;
- Change the branch name if needed ;
runoption can be one (string) or a list (array) of command to execute ;
You can provide as many endpoints as needed ! For instance, if you need to use this "PHP GitHub Webhook" with more than one repository.
- Go in the "Settings" tab of your repository ;
- Go in "Webhooks"
- Create a new webhook
- Put the link to the webhook in "Payload URL" : something like
http://YOUR_IP_ADDRESS/webhook; don't forget to add the
/webhookafter your IP address or domain name !
application/jsonas "Content type"
- I suggest to add a token in "Secret" (don't forget to define it in your
- You only need to send the