ignited / webhooks-outgoing
There is no license information available for the latest version (0.1.0) of this package.
0.1.0
2021-06-03 08:57 UTC
Requires
- guzzlehttp/guzzle: ^7
- illuminate/bus: 7.0|^8.0
- illuminate/contracts: 7.0|^8.0
- illuminate/database: 7.0|^8.0
- illuminate/events: 7.0|^8.0
- illuminate/queue: 7.0|^8.0
- illuminate/support: 7.0|^8.0
Requires (Dev)
- mockery/mockery: ^1.0
- phpunit/phpunit: ^9.0
This package is not auto-updated.
Last update: 2024-12-13 01:47:21 UTC
README
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.
Synchronous
No queues - simple to setup but no delivery assurance
$request = Webhooks::generate($url, $body, $method); $response = Webhooks::fire($request);
Asynchronous
Requires queues - but implements backoff, x failed attempts, and retry etc.
$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.
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.