2017 © Pedro PelĂĄez
 

library service-webhook-handler

Library to handle Webhooks from various services.

image

noplanman/service-webhook-handler

Library to handle Webhooks from various services.

  • Thursday, March 8, 2018
  • by noplanman
  • Repository
  • 1 Watchers
  • 1 Stars
  • 27 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Service Webhook Handler

Minimum PHP Version Latest Stable Version Total Downloads License, (*1)

PHP library to handle Webhooks from various services., (*2)

Installation

Installation is pretty straightforward:, (*3)

Require this package with Composer

Either run this command in your command line:, (*4)

composer require noplanman/service-webhook-handler

or, (*5)

For existing Composer projects, edit your project's composer.json file to require noplanman/service-webhook-handler:, (*6)

"require": {
    "noplanman/service-webhook-handler": "^0.2"
}

and then run composer update, (*7)

Usage

Very basic functionality provided so far for:, (*8)

GitHub

Docs - GitHubHandler.php, (*9)

use NPM\ServiceWebhookHandler\Handlers\GitHubHandler;

$handler = new GitHubHandler('webhook_secret');
if ($handler->validate()) {
    // All good, use the received data!
    $data = $handler->getData();
}

Travis CI

Docs - TravisCIHandler.php, (*10)

use NPM\ServiceWebhookHandler\Handlers\TravisCIHandler;

$handler = new TravisCIHandler();
if ($handler->validate()) {
    // All good, use the received data!
    $data = $handler->getData();
}

Telegram Login

Docs - TelegramLoginHandler.php, (*11)

use NPM\ServiceWebhookHandler\Handlers\TelegramLoginHandler;

$handler = new TelegramLoginHandler('123:BOT_API_KEY');
if ($handler->validate(json_encode($_GET))) {
    // All good, use the received data!
    $data = $handler->getData();
}

The Versions

08/03 2018

dev-master

9999999-dev https://github.com/noplanman/service-webhook-handler

Library to handle Webhooks from various services.

  Sources   Download

MIT

The Requires

  • php >=7.1

 

services github handler webhooks travis-ci

08/03 2018

dev-develop

dev-develop https://github.com/noplanman/service-webhook-handler

Library to handle Webhooks from various services.

  Sources   Download

MIT

The Requires

  • php >=7.1

 

services github handler webhooks travis-ci

08/03 2018

0.2.0

0.2.0.0 https://github.com/noplanman/service-webhook-handler

Library to handle Webhooks from various services.

  Sources   Download

MIT

The Requires

  • php >=7.1

 

services github handler webhooks travis-ci

13/04 2017

0.1.0

0.1.0.0 https://github.com/noplanman/service-webhook-handler

Library to handle Webhooks from various services.

  Sources   Download

MIT

services github handler webhooks travis-ci