spartaksun / gitlab-hook-php
Framework agnostic handler for GitLab project hooks
0.1.1
2021-01-28 15:28 UTC
Requires
- ext-json: *
Requires (Dev)
- phpunit/phpunit: ^8.5
This package is auto-updated.
Last update: 2026-02-28 00:25:36 UTC
README
Framework agnostic handling GitLab project hooks
Install:
composer require spartaksun/gitlab-hook-php
Usage:
<?php use Spartaksun\GitLabHook\Entity\CodeSnippetComment; use Spartaksun\GitLabHook\GitLabHook; require 'vendor/autoload.php'; $key = 'your_secret_key'; $hook = new GitLabHook($key); /** @var $requestBody string */ /** @var CodeSnippetComment $result */ $result = $hook->process($key, $requestBody);