定制 dagar/convoy 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

dagar/convoy

Composer 安装命令:

composer require dagar/convoy

包简介

php plugin for convoy api

README 文档

README

The Convoy Webhook Platform PHP SDK is a powerful tool that allows developers to easily integrate Convoy's webhook functionality into their PHP applications. With this SDK, you can effortlessly send and receive webhooks, handle events, and manage subscriptions.

Features

  • Easy Integration: The SDK provides a simple and intuitive interface for integrating Convoy's webhook functionality into your PHP applications.

  • Webhook Management: With the SDK, you can easily send webhooks to external services and receive webhooks from Convoy.

  • Event Handling: The SDK allows you to handle incoming webhook events and perform custom actions based on the event data.

  • Subscription Management: You can manage your webhook subscriptions, including creating, updating, and deleting subscriptions.

Installation

To install the Convoy Webhook Platform PHP SDK, simply run the following command:

composer require dagar/convoy

Usage

To get started with the SDK, follow these steps:

  1. Import the SDK into your PHP file:
require_once 'vendor/autoload.php';
use Dagar\Convoy\Api;
  1. Initialize the API class:
$authToken = 'CO.yjkKPKAa4FYGJNqo.81uZ3tWu7cLHv6twgkNFZKWmnyCMfa4b7i58Z48FVJTX0WGR9mNfX878Ps1BsoHm';
$url = "https://api.convoy.com";
$orgID = "01J6Y7JN7JEAE8X94RW4W5SDPE";
$projectId = "01J6Y8RZAKBAH4D2Y8CQP6305G";

$api = new Api($authToken, $url);
  1. Start sending and receiving webhooks:
$resp = $api->Project()->Create('project_name', $orgID);
print_r($resp);

$resp = $api->Project()->List($orgID);
print_r($resp);

$resp = $api->Project($projectId)->Source()->List();
print_r($resp);

$resp = $api->Project($projectId)->Source()->Create('source_name');
print_r($resp);

$resp = $api->Project($projectId)->Endpoint()->List();
print_r($resp);

$resp = $api->Project($projectId)->Endpoint()->Create('webhook', "https://webhook.site/");
print_r($resp);

$resp = $api->Project($projectId)->Subscription()->List();
print_r($resp);

$resp = $api->Project($projectId)->Subscription()->Create('test', '01J6Y8RZAKBAH4D2Y8CQP6305G', '01J6Y8RZAKBAH4D2Y8CQP6305G');
print_r($resp);

For more detailed usage instructions and examples, please refer to the documentation.

Contributing

We welcome contributions from the community! If you have any suggestions, bug reports, or feature requests, please open an issue on our GitHub repository.

License

This SDK is released under the MIT License.

dagar/convoy 适用场景与选型建议

dagar/convoy 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 09 月 05 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 dagar/convoy 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 dagar/convoy 我们能提供哪些服务?
定制开发 / 二次开发

基于 dagar/convoy 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-09-05