2017 © Pedro Peláez
 

library inbounder

Handle inbound webhooks in organized way

image

edgarnadal/inbounder

Handle inbound webhooks in organized way

  • Monday, December 26, 2016
  • by edgarnadal
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Inbounder

Scrutinizer Code Quality, (*1)

This is a laravel package for incoming webhook handling., (*2)

Version

v0.1.0, (*3)

Documentation

Pending for documentation., (*4)

Installation

Requirements

  • Laravel 5.1+

Installing with Composer

  1. In your composer.json, add the dependency: "edgarnadal/inbounder": "dev-master", (*5)

  2. Add the Inbounder service provider in your config/app.php:, (*6)

        Inbounder\InbounderServiceProvider::class,
  1. Add the following alias:
        'Inbounder'    => Inbounder\Facades\Inbounder::class,
  1. Create gateways:
php artisan vendor:publish --provider="Inbounder\InbounderServiceProvider"

Add your gateways like this on config/inbounder.php:, (*7)

    'gateways' => [
        'example-gateway' => 'App\\Example\InbounderHandler'
    ]

Coming soon more on creating handlers., (*8)

post('/inbounder/{gateway}', function (\Request $request, $gateway) {

    $gateway = \Inbounder::gateway($gateway, $request);
    $parsed = $gateway->parse();

    dd($parsed);

    $handlerResponse = $parsed->handler()->run();

    // Do something with your handler response, in this case
    // I'll return it to the requester
    return response()->json($handlerResponse);

    // Or you could just return 200
    return response()->make();

});

The Versions

26/12 2016

dev-master

9999999-dev

Handle inbound webhooks in organized way

  Sources   Download

MIT

The Requires

 

by Edgar Nadal

01/06 2016

dev-analysis-8KoBme

dev-analysis-8KoBme

Handle inbound webhooks in organized way

  Sources   Download

MIT

The Requires

 

by Edgar Nadal