Download the PHP package h-ishak/git-webhook-handler without Composer
On this page you can find all versions of the php package h-ishak/git-webhook-handler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download h-ishak/git-webhook-handler
More information about h-ishak/git-webhook-handler
Files in h-ishak/git-webhook-handler
Package git-webhook-handler
Short Description The simple way to automatically update your app using a webhook.
License MIT
Informations about the package git-webhook-handler
Credits
All credits goes to Sevak https://github.com/sevaske
Git Webhook Handler
The simple way to automatically update your app using a webhook.
This script listens to the bitbucket/github webhook and updates the current brunch of your project.
What does it do?
Install
Examples
You can create a file: {your_project_path}/webhook/index.php
Handlers
You have 2 Existing Handlers :
- BitbucketHandler
- GithubHandler
need more handlers ? you can add any handler you want just by extending AbstractHandler class
Just update the project
Update and process the results
Errors?
If you have any errors related to accessing the repository, you can run the following command:
Also, the script must have access to all the files of your project otherwise you may have an error. A quick solution (but unsafe, so be careful):
What about security?
The webhook checks the branch name and checks if such a branch exists in the repository. The execution command is fixed and does not contain anything dynamic.
You should add your server's ip to the webhook whitelist .
All versions of git-webhook-handler with dependencies
ext-json Version *