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:
- Import the SDK into your PHP file:
require_once 'vendor/autoload.php'; use Dagar\Convoy\Api;
- Initialize the API class:
$authToken = 'CO.yjkKPKAa4FYGJNqo.81uZ3tWu7cLHv6twgkNFZKWmnyCMfa4b7i58Z48FVJTX0WGR9mNfX878Ps1BsoHm'; $url = "https://api.convoy.com"; $orgID = "01J6Y7JN7JEAE8X94RW4W5SDPE"; $projectId = "01J6Y8RZAKBAH4D2Y8CQP6305G"; $api = new Api($authToken, $url);
- 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 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-09-05