afoozle / github-webhook
Github Webhook tools for php
0.4
2013-06-27 12:43 UTC
Requires
- php: >=5.3.0
- psr/log: >=1.0,<2.0
Requires (Dev)
- phpunit/phpunit: 3.7.*
This package is not auto-updated.
Last update: 2024-12-16 15:00:05 UTC
README
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