2017 © Pedro Peláez
 

library webhook-event-manager

WebHook Event Manager is a simple library to help parse webhook payloads from some services (GitHub, BitBucket)

image

atkrad/webhook-event-manager

WebHook Event Manager is a simple library to help parse webhook payloads from some services (GitHub, BitBucket)

  • Tuesday, October 13, 2015
  • by atkrad
  • Repository
  • 2 Watchers
  • 2 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

WebHook Event Manager

WebHook Event Manager is a simple library to help parse webhook payloads from some services (GitHub, BitBucket):, (*1)

Requirements

  • php >=5.4

Installation

Using composer:, (*2)

Add the following to your composer.json file:, (*3)

"require": {
    "atkrad/webhook-event-manager": "0.1.*",
},

Usage

<?php
use WebHookEventManager\WebHook;

$webHook = new WebHook();

//Get repository owner's avatar url
$avatarUrl = $webHook->getGitHubService()
    ->getIssuesEvent()
    ->getRepository()
    ->getOwner()
    ->getAvatarUrl();

//Get sender's followers url
$followersUrl = $webHook->getGitHubService()
    ->getIssuesEvent()
    ->getSender()
    ->getFollowersUrl();

//Get pusher's username
$pusherUsername = $webHook->getGitHubService()
    ->getPushEvent()
    ->getPusher()
    ->getUsername();

Contribute

Please do. Fork it and send pull requests., (*4)

The Versions

13/10 2015

dev-master

9999999-dev

WebHook Event Manager is a simple library to help parse webhook payloads from some services (GitHub, BitBucket)

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

manager event github webhook payload post receive

28/02 2014

v0.1.0

0.1.0.0

Web hook event manager

  Sources   Download

The Requires

  • php >=5.4

 

The Development Requires