定制 pcabreus/whatsapp-api 二次开发

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

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

pcabreus/whatsapp-api

最新稳定版本:v0.2.1

Composer 安装命令:

composer require pcabreus/whatsapp-api

包简介

A WhatsApp PHP application

README 文档

README

Caution: https://www.linkedin.com/feed/update/urn:li:activity:6359786787627417600

This library is a simple php programming object oriented of "https://github.com/mgp25/Chat-API" application.

For full documentation read the wiki

Installation

You first must add the library to your composer.json:

[json]
"require": {

    "pcabreus/whatsapp-api": "~0.1"
}

Then you need to install the library with composer.

Usage

After that you can use the WhatsAppApi class like this:

[php]
//Create the service
$whatsAppApi = new WhatsAppApi();
//Configure the connexion with the user credentials
$whatsAppApi->config("1123456789", "pcabreus", "this-is-secret", false);

//Send a message to a contact
$whatsAppApi->sendMessage("1987654321", "This is a message", WhatsAppApi::MESSAGE_TYPE_TEXT);

//Or you cant send a message to a group of contact
$numbers = array("1987654321", "44123456789");
$whatsAppApi->sendMessage($numbers, "This message go to many users", WhatsAppApi::MESSAGE_TYPE_TEXT);

ToDo

More documentation...

统计信息

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

GitHub 信息

  • Stars: 32
  • Watchers: 7
  • Forks: 22
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-07-23