PHPackages                             bahramali/shad-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. bahramali/shad-php

ActiveLibrary[API Development](/categories/api)

bahramali/shad-php
==================

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

v1.0.0(5y ago)121482[1 issues](https://github.com/ErfanBahramali/Shad-PHP/issues)MITPHPPHP &gt;=7.2

Since Apr 27Pushed 2y ago1 watchersCompare

[ Source](https://github.com/ErfanBahramali/Shad-PHP)[ Packagist](https://packagist.org/packages/bahramali/shad-php)[ Docs](https://github.com/ErfanBahramali/Shad-PHP)[ RSS](/packages/bahramali-shad-php/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

[![](https://camo.githubusercontent.com/79020454b970acd9ddbb7e4a55d2c3bc7deb3903f90d88b9a3f6f7391f1fa8cd/68747470733a2f2f62616872616d616c692e69722f696d672f736861642e6c6f676f2e706e67)](https://web.shad.ir)

[![Total Downloads](https://camo.githubusercontent.com/d8af9618b66740c60ca39285141eae304a930c55d650a30c0283593c21001981/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f62616872616d616c692f736861642d706870)](https://packagist.org/packages/bahramali/shad-php)[![Latest Stable Version](https://camo.githubusercontent.com/e17bc21e19173ee2daebb2d1f47d123f43e91969acdbf87babe8aa45a806d75d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f62616872616d616c692f736861642d706870)](https://packagist.org/packages/bahramali/shad-php)[![License](https://camo.githubusercontent.com/60a2453287f7c3d432c780d6e526022b70d1d497aaf87c23d4f4f07f95df1f1a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f62616872616d616c692f736861642d706870)](https://packagist.org/packages/bahramali/shad-php)

Shad-PHP
========

[](#shad-php)

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

Installation
------------

[](#installation)

```
composer require bahramali/shad-php

```

Usage
-----

[](#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
-------

[](#example)

- [`parrot.php`](https://github.com/ErfanBahramali/Shad-PHP/blob/main/examples/parrot.php)
- [`upload.php`](https://github.com/ErfanBahramali/Shad-PHP/blob/main/examples/upload.php)
- [`download.php`](https://github.com/ErfanBahramali/Shad-PHP/blob/main/examples/download.php)

About Us
--------

[](#about-us)

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

Disclaimer
----------

[](#disclaimer)

**This library is free and can not be sold.**

**The responsibility for using this library lies with the individual**

License
-------

[](#license)

Shad-PHP is licensed under the MIT License - see the [LICENSE](LICENSE) file for details

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 72% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1846d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/14eed73dace8db0125c528713a1a37ce5c5c73ab5a5670bead544a594c630c1c?d=identicon)[Erfan\_Bahramali](/maintainers/Erfan_Bahramali)

---

Top Contributors

[![ErfanBahramali](https://avatars.githubusercontent.com/u/77061285?v=4)](https://github.com/ErfanBahramali "ErfanBahramali (18 commits)")[![NabiKAZ](https://avatars.githubusercontent.com/u/246721?v=4)](https://github.com/NabiKAZ "NabiKAZ (7 commits)")

---

Tags

apiapi-clientbotphpshadphpapibotPSR-4shadShad PHPmanage shad

### Embed Badge

![Health badge](/badges/bahramali-shad-php/health.svg)

```
[![Health](https://phpackages.com/badges/bahramali-shad-php/health.svg)](https://phpackages.com/packages/bahramali-shad-php)
```

###  Alternatives

[borsaco/telegram-bot-api-bundle

A simple wrapper for telegram-bot-api.

5633.0k](/packages/borsaco-telegram-bot-api-bundle)[klev-o/telegram-bot-api

Simple and convenient object-oriented implementation Telegram bot API with php version ^7.4 support. You'll like it)

457.8k1](/packages/klev-o-telegram-bot-api)[klev-o/crypto-pay-api

Simple and convenient implementation of the Crypto Pay payment system (@CryptoBot)

205.1k](/packages/klev-o-crypto-pay-api)[kuvardin/telegram-bots-api

SDK for Telegram bots API

145.5k](/packages/kuvardin-telegram-bots-api)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
