zepson/whatsappcloud-php 问题修复 & 功能扩展

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

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

zepson/whatsappcloud-php

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.

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固