hyperzod/whatsapp-marketing-sdk-php
最新稳定版本:v1.5
Composer 安装命令:
composer require hyperzod/whatsapp-marketing-sdk-php
包简介
A PHP SDK to integrate Whatsapp Marketing with your application.
README 文档
README
This is the official PHP SDK for Whatsapp Marketing.
Installation
You can install the package via composer:
composer require hyperzod/whatsapp-marketing-sdk-php
Usage
You can use the sdk to call the Whatsapp Marketing API (Eg: Sending a message).
// $client = WhatsappMarketingClient($api_key, $env, $token = null); // $response = $client->message->sendUtilityMessage($payload);
// Creating data objects $messageData = new UtilityMessageData( 'tenant123', 'template_abc', 'TEXT', 919876543210, ['1' => 'A1005', '2' => 'Accepted'] ); // Or from request data $messageData = UtilityMessageData::fromArray($request->all()); // Using with services $messageService->sendUtilityMessage($messageData->toArray());
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 21
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-02-07