PHPackages                             amaxlab/git-web-hook - 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. amaxlab/git-web-hook

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

amaxlab/git-web-hook
====================

Library for git web hook handle (supported and tested gitlab.com and github.com)

v0.1-beta(10y ago)2581MITPHPPHP &gt;=5.3

Since Jun 18Pushed 10y ago2 watchersCompare

[ Source](https://github.com/amaxlab/git-web-hook)[ Packagist](https://packagist.org/packages/amaxlab/git-web-hook)[ Docs](https://github.com/amaxlab/git-web-hook)[ RSS](/packages/amaxlab-git-web-hook/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (1)

Git web hook
============

[](#git-web-hook)

[![Build Status](https://camo.githubusercontent.com/64cca389a5050ebf1c321369665743404818ba44b81b610c1d0fa3040d0ceb64/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616d61786c61622f6769742d7765622d686f6f6b2f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/amaxlab/git-web-hook/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/1445fe4747502e74c5f6592f9de221400142888d8926bc89b2fc4790ad5b6f46/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616d61786c61622f6769742d7765622d686f6f6b2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/amaxlab/git-web-hook/?branch=master)

Library for handle git web hooks from gitlab.com or github.com and run commands

Features
--------

[](#features)

- Run commands by global get request
- Run commands by git repository push
- Run commands by some branch push
- Security check commit author (global, repository, branch)
- Security check param from $\_GET request
- Send email author and mail recipients with the results of the execute command

Require
-------

[](#require)

- php &gt;= 5.3
- symfony/options-resolver ^2.3
- symfony/yaml ^2.3
- psr/log &gt;= ~1.0

Install
-------

[](#install)

```
$ php composer require amaxlab/git-web-hook "~1.0"
```

or project

```
$ php composer create-project amaxlab/git-web-hook-composer-install ./git-web-hook --prefer-dist
```

Usage
-----

[](#usage)

### Old way:

[](#old-way)

Specify config in php file directly:

```
