PHPackages                             love-oss/github-event-parser - 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. love-oss/github-event-parser

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

love-oss/github-event-parser
============================

PHP library to get a readable representation of events dispatched by Github API v3

0.8.4(4y ago)230[3 issues](https://github.com/loveOSS/github-event-parser/issues)[1 PRs](https://github.com/loveOSS/github-event-parser/pulls)MITPHPPHP ^7.4|^8.0

Since Jul 7Pushed 4y agoCompare

[ Source](https://github.com/loveOSS/github-event-parser)[ Packagist](https://packagist.org/packages/love-oss/github-event-parser)[ Docs](https://github.com/loveOSS/github-event-parser)[ RSS](/packages/love-oss-github-event-parser/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (2)Dependencies (7)Versions (5)Used By (0)

Github event parser library
===========================

[](#github-event-parser-library)

[![PHPStan](https://camo.githubusercontent.com/60033857034104a2be364675ad894418c186f58b3ae75291f65d9857e1b4db0b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d4c6576656c253230352d627269676874677265656e2e7376673f7374796c653d666c6174266c6f676f3d706870)](https://shields.io/#/)

> This library is a reupload of a library created by [Mickaël Andrieu](https://github.com/mickaelandrieu) in 2016 for the Lp Digital web agency, Paris, France. We have obtained the authorization from the former creator to change the licence from GNU-GPL v2 to MIT. PHP Developers : consider using love-oss/github-event-parser as a direct replacement of lp-digital/github-event-parser.

Github Event Parser is a naive PHP library aimed to provide readable representations of json responses from [Github Events Api v3](https://developer.github.com/v3/activity/events/types/).

Thanks to the Github webhooks, any administrator of a repository can access and listen theses events returned into json responses.

The only aim of this library is to parse theses responses, and create simple POPO (Plain Old PHP Object) easy to manipulate, extends or even persist in a database.

A lot of usages are available since you can listen all events:

- make statistics on your repositories
- do some tasks after a successful deployment
- send a "thanks" email for each validated contribution
- and so on ...

Installation
------------

[](#installation)

```
$ composer require "love-oss/github-event-parser"
```

PHP requirements
----------------

[](#php-requirements)

The library may access to GitHub API to retrieve additional information. Your PHP configuration may have `allow_url_fopen` and a valid `user_agent` enabled, or some informations won't be retrieved.

You can use `InvalidPhpConfigurationException` to catch the exception:

```
