Skip to content

afoozle/github-webhook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github-webook - Github Webhook parsing for PHP 5.3+ Build Status

Github-Webhook is a simple library to help parse webhook payloads from github. ( https://help.github.com/articles/post-receive-hooks )

This library on it's own does not do anything in particular, it simply provides a convenient method for parsing post receive hook data into a standard structure.

Installation

Install via packagist/composer: https://packagist.org/packages/afoozle/github-webhook

Usage

<?php
use afoozle\GithubWebhook\EntityMapper\PayloadMapper;

$payloadMapper = new PayloadMapper($payload);

$payload = $payloadMapper->mapFromJson($yourJsonFormattedData);
// or
$payload = $payloadMapper->mapFromDataArray($yourArrayOfData);

var_dump($payload);

About

Requirements

  • Any flavor of PHP 5.3 or above should do
  • [optional] PHPUnit 3.7+ to execute the test suite (phpunit --version)

Submitting bugs and feature requests

Bugs and feature request are tracked on GitHub

Author

Matthew Wheeler - matt@yurisko.net - http://twitter.com/afoozle

License

Github-Webhook is licensed under the MIT License - see the LICENSE.txt file for details

About

PHP Library to work with github webhook payload data

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages