bariew/whatsapp
Composer 安装命令:
composer require bariew/whatsapp
包简介
Whatsapp API
关键字:
README 文档
README
Whatsapp API client.
Description
- send messages
- create templates
- receive media
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist bariew/whatsapp
or add
"bariew/whatsapp": "dev-master"
to the require section of your composer.json file.
Usage
$whatsapp = Api::instance($id, $token, $business_id);
$templateId = $whatsapp->templateCreate("template1_en", "Hello {{username}}", "", "From My App", [
"https://my.url" => "click this url",
"my_key" => "Ok"
], 'en');
$messageId = $whatsapp->templateMessage('+9-900-033-44-16', 'template1_en', ['username' => "Paul"])['messages'][0]['id'];
see more examples in Api::webhookProcess()
since most actions happen when user answers to our messages and we need to process the answer in our webhook
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2025-08-28