定制 bahramali/shad-php 二次开发

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

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

bahramali/shad-php

最新稳定版本:v1.0.0

Composer 安装命令:

composer require bahramali/shad-php

包简介

Shad-PHP is a PHP Library for interaction with Shad (Student Educational Network)

README 文档

README


Total Downloads Latest Stable Version License

Shad-PHP

Shad-PHP is a PHP Library for interaction with Shad (Student Educational Network)

Installation

composer require bahramali/shad-php

Usage

object_guid($user_guid,$group_guid,$channel_guid and other) is a unique code for user, group, channel and other

set_time_limit(0);
require_once __DIR__ . '/vendor/autoload.php';

use ShadPHP\ShadPHP;

$account = new ShadPHP(989123456789); // Only without zero and with area code 98
$account->onUpdate(function (array $update) use ($account) {
    if (isset($update['data_enc'])) {
        $message = $update['data_enc'];
        // other code
    }
});
$account->getUserGUID();

$account->getChats(); // get all of chats

$account->getChatAds(); // get all of chats ads

$account->getChatsUpdates(); // get chat updates

$account->getMySessions(); // get all of account session

$account->getUserInfo($user_guid);

$account->getGroupInfo($group_guid);

$account->getChannelInfo($channel_guid);

$account->getAbsObjects($objects_guids);

$account->getMessagesInterval($object_guid, $middle_message_id); // get message content by message id

$account->getMessagesUpdates($object_guid);

$account->getMessages($object_guid, $sort, $filter_type, $max_id);

$account->getMessagesByID($object_guid, $message_ids);

$account->getPollStatus($poll_id);

$account->seenChats($seen_list);

$account->searchChatMessages($search_text, $type, $object_guid);

$account->searchGlobalObjects($search_text);

$account->searchGlobalMessages($search_text, $type);

$account->sendMessage($object_guid, $text);

$account->votePoll($poll_id, $selection_index);

$account->uploadFile($object_guid, $file_path, $text, $progress_cb);

$account->downloadFile($file_inline, $save_file, $overwrite, $progress_cb);

Example

About Us

This library can be used for easy interaction with Shad just like official applications.

Disclaimer

This library is free and can not be sold.

The responsibility for using this library lies with the individual

License

Shad-PHP is licensed under the MIT License - see the LICENSE file for details

统计信息

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

GitHub 信息

  • Stars: 12
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-04-27