ignited/webhooks-outgoing 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ignited/webhooks-outgoing

最新稳定版本:0.1.0

Composer 安装命令:

composer require ignited/webhooks-outgoing

包简介

README 文档

README

Build Status Total Downloads

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.

统计信息

  • 总下载量: 330
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-08-27