andydixon/webexinteract
最新稳定版本:v0.1
Composer 安装命令:
composer require andydixon/webexinteract
包简介
An unofficial PHP library for WebEx Interact.
README 文档
README
An unofficial PHP library for interacting with the WebEx Interact API.
This library allows you to schedule and send SMS messages via WebEx Interact endpoints.
Features
- Send SMS messages to one or more recipients.
- Schedule messages to be sent at a future date/time.
- Set message expiration times.
Requirements
- PHP >= 7.4
- Composer
guzzlehttp/guzzle>= 7.0ext-json
Installation
Install the library via Composer:
composer require andydixon/webex-interact
Example
require __DIR__ . '/vendor/autoload.php'; use AndyDixon\WebexInteract\Sms\InteractSms; $interact = InteractSms::sms_api("your-api-key") ->setOriginator("YourBrand") ->addRecipient("+1234567890") ->message("Hello, this is a test message!"); // Optionally set scheduled time and expiry // $interact->sendAt((new DateTime('now', new DateTimeZone('UTC')))->add(new DateInterval('PT10M'))); // $interact->expires((new DateTime('now', new DateTimeZone('UTC')))->add(new DateInterval('P1D'))); try { $response = $interact->sendSms(); if ($response->hasErrors()) { foreach ($response->getErrors() as $errorObject) { echo "Error Field: " . $errorObject->getField() . "\n"; echo "Error Message: " . $errorObject->getMessage() . "\n"; echo "Error Code: " . $errorObject->getCode() . "\n"; } } else { echo "Request ID: " . $response->getRequestId() . "\n"; foreach ($response->getMessages() as $message) { echo "Transaction ID: " . $message->getTransactionId() . "\n"; echo "To: " . $message->getTo() . "\n"; echo "Status: " . $message->getStatus() . "\n"; echo "Code: " . $message->getCode() . "\n"; } } } catch (\AndyDixon\WebexInteract\Sms\InteractError $err) { echo "Error: " . $err->getMessage() . "\n"; if ($err->getData()) { echo "Response Data: " . $err->getData() . "\n"; } }
andydixon/webexinteract 适用场景与选型建议
andydixon/webexinteract 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 124 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 12 月 09 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 andydixon/webexinteract 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 andydixon/webexinteract 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 124
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 14
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2024-12-09