PHPackages                             rubi/lib - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. rubi/lib

ActiveLibrary[HTTP &amp; Networking](/categories/http)

rubi/lib
========

A simple and lightweight client for connecting to Rubika and Shad messaging platforms, designed for easy integration and efficient setup of user-friendly applications. This library provides essential functionalities for sending and receiving messages, managing user sessions, and ensuring smooth communication, making it ideal for developers looking to enhance their apps with messaging features.

v1.0.0(1y ago)114MITPHP

Since Mar 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Amirmohammadpezeshkii/RubikaLibery)[ Packagist](https://packagist.org/packages/rubi/lib)[ RSS](/packages/rubi-lib/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

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

[![Total Downloads](https://camo.githubusercontent.com/8963caa524d22c6445e0d0bb87b33f0d307098b5eadf12dcdbf55a95d85daa3b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f727562692f6c6962)](https://packagist.org/packages/rubi/lib)[![Latest Stable Version](https://camo.githubusercontent.com/06e28b5d39368c27cf297ff4bb5cb57f61819ea9a59493acc343da11a9421368/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f727562692f6c6962)](https://packagist.org/packages/rubi/lib)[![License](https://camo.githubusercontent.com/ed1ce7bfe820ae23a9be85b003eb8056e7172f7582f0d27983b608925ac24210/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f727562692f6c6962)](https://packagist.org/packages/rubi/lib)[![Stars](https://camo.githubusercontent.com/812699f99640b14ba71b0e9f37ac34c80a26cf689097ea4c4159b7e4824aebbc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f727562692f6c6962)](https://packagist.org/packages/rubi/lib)[![Release](https://camo.githubusercontent.com/ba9eed41c14e88edf43d1278ca515f352f4a054f8788e923929042f7f903bc26/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f416d69726d6f68616d6d616470657a6573686b69692f527562696b614c6962657279)](https://packagist.org/packages/rubi/lib)[![Tag](https://camo.githubusercontent.com/10f6db1acf71801ef414f89df0740ae5c65fe0fde853a5a148b4cc865faa3c9a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f416d69726d6f68616d6d616470657a6573686b69692f527562696b614c6962657279)](https://packagist.org/packages/rubi/lib)[![Files count](https://camo.githubusercontent.com/4ba4ec8b044e2349dfa36fb7b8f9f255f4c94b7f53b9df217c14a2d04196511d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6469726563746f72792d66696c652d636f756e742f616d69726d6f68616d6d616470657a6573686b69692f527562696b614c6962657279)](https://packagist.org/packages/rubi/lib)[![Files size](https://camo.githubusercontent.com/6c3286bfce27753a40270200d33021d777f4b93af1e49da52dfbc995b338500f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7265706f2d73697a652f616d69726d6f68616d6d616470657a6573686b69692f527562696b614c6962657279)](https://packagist.org/packages/rubi/lib)[![Discussions](https://camo.githubusercontent.com/4b6e6c8e49a5877dc20307c945077fbac12f08ed45dedab2dfd94a4a837fcdb4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f64697363757373696f6e732f616d69726d6f68616d6d616470657a6573686b69692f527562696b614c6962657279)](https://packagist.org/packages/rubi/lib)[![Sponsors](https://camo.githubusercontent.com/ef51d94fa3f7c39ac0356654342c5951e3e3c9aa0eb18d540936a675baf4b573/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73706f6e736f72732f616d69726d6f68616d6d616470657a6573686b6969)](https://packagist.org/packages/rubi/lib)[![Created-at](https://camo.githubusercontent.com/f67008e66552be6e7c3ce05b7b76bf4d62566a8f69c508bb97076c4f9d7c45c2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f637265617465642d61742f616d69726d6f68616d6d616470657a6573686b69692f527562696b614c6962657279)](https://packagist.org/packages/rubi/lib)

Description
-----------

[](#description)

- Rubi/lib is a PHP Library for interaction with rubika (social network)

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

[](#installation)

```
composer require rubi/lib:dev-main

```

Usage
-----

[](#usage)

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

use rubi\rubika;

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

Example
-------

[](#example)

- coming soon...

About Us
--------

[](#about-us)

- This library can be used for easy interaction with Rubika just like official applications. [support](https://t.me/amirMohamadPezeshki)

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

26

—

LowBetter than 43% of packages

Maintenance45

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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

432d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/43a3b9bed96a30d7ebf0285f69f4c446545e9a8a20e3713d6a12b230cc05b9cc?d=identicon)[amir.mohammad.pezeshki](/maintainers/amir.mohammad.pezeshki)

---

Top Contributors

[![Amirmohammadpezeshkii](https://avatars.githubusercontent.com/u/72997258?v=4)](https://github.com/Amirmohammadpezeshkii "Amirmohammadpezeshkii (89 commits)")

---

Tags

php-botrubikarubika botself rubikaروبیکاروبی

### Embed Badge

![Health badge](/badges/rubi-lib/health.svg)

```
[![Health](https://phpackages.com/badges/rubi-lib/health.svg)](https://phpackages.com/packages/rubi-lib)
```

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78026.4M414](/packages/react-http)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48347.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84310.1M71](/packages/smi2-phpclickhouse)

PHPackages © 2026

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