PHPackages                             bahramali/rubika-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/rubika-php

ActiveLibrary[API Development](/categories/api)

bahramali/rubika-php
====================

Rubika-PHP is a PHP Library for interaction with rubika (social network)

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

Since Apr 27Pushed 5y ago1 watchersCompare

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

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

[![](https://camo.githubusercontent.com/e263fa8bc4593007e93641642b9e272534c87d6946fb1ef3988eca8a112d691c/68747470733a2f2f62616872616d616c692e69722f696d672f727562696b612e6c6f676f2e737667)](https://web.rubika.ir)

[![Total Downloads](https://camo.githubusercontent.com/aa01d5e976bd326328826401f41d5823cb4f6af20b1acc9762d08b77f95aeda2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f62616872616d616c692f727562696b612d706870)](https://packagist.org/packages/bahramali/rubika-php)[![Latest Stable Version](https://camo.githubusercontent.com/8c3f03084030663e4ae07845b6c41fed30f55c3b643558e2293cab5534545180/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f62616872616d616c692f727562696b612d706870)](https://packagist.org/packages/bahramali/rubika-php)[![License](https://camo.githubusercontent.com/4efae2f67effb850a8b7889cf77d36ba79a8c13b097fe104e6dd4c00c56504b1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f62616872616d616c692f727562696b612d7068703f)](https://packagist.org/packages/bahramali/rubika-php)

Rubika-PHP
==========

[](#rubika-php)

Rubika-PHP is a PHP Library for interaction with rubika (social network)

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

[](#installation)

```
composer require bahramali/rubika-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 RubikaPHP\RubikaPHP;

$account = new RubikaPHP(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->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);
```

Example
-------

[](#example)

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

About Us
--------

[](#about-us)

This library can be used for easy interaction with Rubika 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)

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

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance11

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

1847d 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 (7 commits)")

---

Tags

apiapi-clientphprubikaphpbotPSR-4rubikamanage rubikaRubika-PHP

### Embed Badge

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

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

###  Alternatives

[telegram-bot/api

PHP Wrapper for Telegram Bot API

1.2k2.4M29](/packages/telegram-bot-api)[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)[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)
