PHPackages                             sevaske/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. sevaske/git-webhook-handler

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sevaske/git-webhook-handler
===========================

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

v0.3.0(1y ago)21121MITPHPPHP &gt;=7.4

Since May 13Pushed 1y ago1 watchersCompare

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

READMEChangelog (4)DependenciesVersions (8)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)

```
