2017 © Pedro Peláez
 

library webhooks-outgoing

image

ignited/webhooks-outgoing

  • Thursday, March 31, 2016
  • by alexw23
  • Repository
  • 1 Watchers
  • 0 Stars
  • 298 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Laravel/Lumen Webhooks (Outgoing) - Beta

Build Status Total Downloads, (*1)

Simple Queue driven webhook interface. Just send your webhook url, body (and method) and let the library take care of the rest. Supports asynchronous (backed by Laravel queues) to ensure message delivery., (*2)


Synchronous

No queues - simple to setup but no delivery assurance ```php $request = Webhooks::generate($url, $body, $method); $response = Webhooks::fire($request);, (*3)


---- ### Asynchronous Requires queues - but implements backoff, x failed attempts, and retry etc. ```php $request = Webhooks::generate($url, $body, $method); Webhooks::dispatch($request);

Note: you will need to run an instance of php artisan queue:listen to ensure queues are delivered., (*4)


Todo (feel free to contribute): - [ ] Functional testing in Laravel (Package was built for Lumen so it's only been testing with intergration of Lumen) - [ ] Retry should not be allowed until it has failed (i.e. attempts >= max_number_attempts) - [ ] More event handling etc. retrying, failing, attempting - [ ] Ability to customise queue_name and queue_connection., (*5)

The Versions