定制 zepson/whatsappcloud-php 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

zepson/whatsappcloud-php

最新稳定版本:1.0.0

Composer 安装命令:

composer require zepson/whatsappcloud-php

包简介

WhatsApp Latest CLoud API Wrapper for PHP

README 文档

README

WhatsApp Latest Cloud API Wrapper for PHP

Latest Version on Packagist Total Downloads

Opensource php wrapper to WhatsApp Cloud API.

Features supported

  1. Sending messages
  2. Sending Media (images, audio, video and ducuments)
  3. Sending location
  4. Sending interactive buttons
  5. Sending template messages

Installation

You can install the package via composer:

composer require zepson/whatsappcloud-php

Usage

<?php

require_once 'vendor/autoload.php';
use zepson\Whatsapp\WhatsappClass;

$token = 'YOUR_META_WHATSAPP_APP_ACCESS_TOKEN';
$phone_number_id = '10726082513218961';
//send message
$tsap = new WhatsappClass( $phone_number_id, $token);

$sendtsap = $tsap->send_template('hello_world', '255654485755');
 
print_r($sendtsap);

All Available Methods

Send plain text

send_message($message, $recipient_id)

Send from template

send_template($template, $recipient_id, $lang = "en_US")

Send Location

 sendLocation($lat, $long, $name, $address, $recipient_id)

Send image

send_image($image, $recipient_id, $recipient_type = "individual", $caption = null, $link = true)

Send Audio

  send_audio($audio, $recipient_id, $link = true)

Send Video

send_video($video, $recipient_id, $caption = null, $link = true)

Send Document

send_document($document, $recipient_id, $caption = null, $link = true)

create button

create_button($button)

send button

    public function send_button($button, $recipient_id)

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Contribute to make more improvement and fix bugs.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 910
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 79
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 77
  • Watchers: 9
  • Forks: 24
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-05-22