bariew/whatsapp 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2025-08-28