2017 © Pedro Peláez
 

library github-webhook

Library which deals with incoming GitHub web hooks requests (signature validation & payload parsing)

image

swop/github-webhook

Library which deals with incoming GitHub web hooks requests (signature validation & payload parsing)

  • Tuesday, February 20, 2018
  • by Swop
  • Repository
  • 1 Watchers
  • 3 Stars
  • 366 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 6 Versions
  • 42 % Grown

The README.md

Github WebHook

Build
Status, (*1)

This library offers a set of tools which could become handy when dealing with GitHub web hook requests., (*2)

Installation

The recommended way to install this library is through Composer:, (*3)

composer require "swop/github-webhook"

Usage

Payload signature checking

The SignatureValidator will verify if the incoming GitHub web hook request is correctly signed., (*4)

```php use Swop\GitHubWebHook\Security\SignatureValidator;, (*5)

$validator = new SignatureValidator();, (*6)

/** @var \Psr\Http\Message\ServerRequestInterface $request */ if ($validator->validate($request, 'secret')) { // Request is correctly signed }, (*7)


### GitHub event object creation The `GitHubEventFactory` can build GitHubEvent objects representing the GitHub event. ```php use Swop\GitHubWebHook\Event\GitHubEventFactory; $factory = new GitHubEventFactory(); /** @var \Psr\Http\Message\ServerRequestInterface $request */ $gitHubEvent = $factory->buildFromRequest(RequestInterface $request); $gitHubEvent->getType(); // Event type $gitHubEvent->getPayload(); // Event deserialized payload

Contributing

See CONTRIBUTING file., (*8)

Original Credits

License

This library is released under the MIT license. See the complete license in the bundled LICENSE file., (*9)

The Versions

20/02 2018

dev-master

9999999-dev

Library which deals with incoming GitHub web hooks requests (signature validation & payload parsing)

  Sources   Download

MIT

The Requires

 

The Development Requires

security github webhook

21/11 2016

2.0.x-dev

2.0.9999999.9999999-dev

Library which deals with incoming GitHub web hooks requests (signature validation & payload parsing)

  Sources   Download

MIT

The Requires

 

The Development Requires

security github webhook

21/11 2016

v2.0

2.0.0.0

Library which deals with incoming GitHub web hooks requests (signature validation & payload parsing)

  Sources   Download

MIT

The Requires

 

The Development Requires

security github webhook

19/11 2016

1.0.x-dev

1.0.9999999.9999999-dev

Security checker which will verify if the incoming GitHub web hook request is correctly signed.

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

security github webhook

19/11 2016

v1.1

1.1.0.0

Security checker which will verify if the incoming GitHub web hook request is correctly signed.

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

security github webhook

19/11 2016

v1.0

1.0.0.0

Security checker which will verify if the incoming GitHub web hook request is correctly signed.

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

security github webhook