PHPackages                             h-ishak/git-webhook-handler - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. h-ishak/git-webhook-handler

ActiveLibrary[API Development](/categories/api)

h-ishak/git-webhook-handler
===========================

The simple way to automatically update your app using a webhook.

1.0.0(1y ago)03MITPHPPHP &gt;=7.4

Since Dec 29Pushed 1y agoCompare

[ Source](https://github.com/H-ishak/git-webhook-handler)[ Packagist](https://packagist.org/packages/h-ishak/git-webhook-handler)[ RSS](/packages/h-ishak-git-webhook-handler/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Credits
=======

[](#credits)

##### All credits goes to Sevak

[](#all-credits-goes-to-sevak-httpsgithubcomsevaske)

Git Webhook Handler
===================

[](#git-webhook-handler)

##### The simple way to automatically update your app using a webhook.

[](#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?

[](#what-does-it-do)

```
git fetch
git pull origin {current_branch_name}

```

### Install

[](#install)

```
composer require h-ishak/git-webhook-handler

```

### Examples

[](#examples)

You can create a file: {your\_project\_path}/webhook/index.php

### Handlers

[](#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

[](#just-update-the-project)

```
