1. Go to this page and download the library: Download qktong/think-message library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
qktong / think-message example snippets
//发送信息
use qktong\message\Sender;
$sender = new Sender();
$sender->send(1, '18581037340', 'yzm', ['code' => '4326'], 1);
//获取消息列表
use qktong\message\Message;
$msg = new Message();
$list = $msg->getList(1, [1], 1, 10);
print_r($list);
//阅读消息
use qktong\message\Message;
$msg = new Message();
$result = $msg->readMessage(1, 1);
var_dump($result);
//阅读全部消息
use qktong\message\Message;
$msg = new Message();
$result = $msg->readAllMessage(1);
var_dump($result);
//删除消息
use qktong\message\Message;
$msg = new Message();
$result = $msg->deleteMessage(1,1);
var_dump($result);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.