PHPackages                             sobhansgh/rubikabotphp - 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. sobhansgh/rubikabotphp

ActiveLibrary[API Development](/categories/api)

sobhansgh/rubikabotphp
======================

Rubika Bot API SDK for PHP

v1.0.2(today)03↑2900%MITPHPPHP ^8.1CI failing

Since Jun 21Pushed todayCompare

[ Source](https://github.com/sobhansgh/RubikaBotPHP)[ Packagist](https://packagist.org/packages/sobhansgh/rubikabotphp)[ GitHub Sponsors](https://github.com/sponsors/Sobhansgh)[ RSS](/packages/sobhansgh-rubikabotphp/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (1)Versions (5)Used By (0)

[![RubikaBotPHP Banner](https://raw.githubusercontent.com/sobhansgh/RubikaBotPHP/main/assets/RubikaBotPHP.png)](https://raw.githubusercontent.com/sobhansgh/RubikaBotPHP/main/assets/RubikaBotPHP.png)RubikaBotPHP
============

[](#rubikabotphp)

### Professional PHP SDK for Rubika Bot API

[](#professional-php-sdk-for-rubika-bot-api)

A modern, lightweight, PSR-4 compliant PHP SDK for building Rubika bots.

![PHP Version](https://camo.githubusercontent.com/b99dbca2b13dd5d7da35c0bff45bb5459113e100a385997ab464de674ac8e9c9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e312b2d3737374242342e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d706870)![License](https://camo.githubusercontent.com/57747fb006f92b8a98a2a19adb0a432381b79bbe9d955a2c9b94ce5b40a6dd04/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f536f6268616e7367682f527562696b61626f747068703f7374796c653d666f722d7468652d6261646765)![Latest Release](https://camo.githubusercontent.com/eefc3de397eae9a2d6d7a7d6211610fb87fe90bfb87f058af425f2d84cd9541a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f536f6268616e7367682f527562696b61626f747068703f7374796c653d666f722d7468652d6261646765)![Packagist](https://camo.githubusercontent.com/61e7e7c10a2b4bb6cbe6a3e27f33a6b497f3cb36408de5bdc9607a9e718c39f4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736f6268616e7367682f727562696b61626f747068703f7374796c653d666f722d7468652d6261646765)![Downloads](https://camo.githubusercontent.com/0a6ee14a50d6afcadec713701f50207e4822d0abd7462c167f30d3259ffd8f8c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736f6268616e7367682f727562696b61626f747068703f7374796c653d666f722d7468652d6261646765)![Stars](https://camo.githubusercontent.com/e8b31f6582ecd6e0fb2707443f9b384a4a13fcbbf94a0f42eea5e6c9390cbdf5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f536f6268616e7367682f527562696b61626f747068703f7374796c653d666f722d7468652d6261646765)![Issues](https://camo.githubusercontent.com/fdd51c8062454711f2c0a9a867813b4c2532cd8691cbf7cf2fb05c8c6c8af708/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f536f6268616e7367682f527562696b61626f747068703f7374796c653d666f722d7468652d6261646765)

---

### 🌍 Documentation

[](#-documentation)

🇺🇸 **English**

➡️ **[README\_EN.md](README_EN.md)**

---

🇮🇷 **فارسی**

➡️ **[README\_FA.md](README_FA.md)**

---

✨ Features
==========

[](#-features)

- Modern PHP 8.1+
- Composer Ready
- PSR-4 Autoload
- Object Oriented
- Type Safe
- Webhook Support
- Polling Support
- Router
- File Upload
- Keyboard Builder
- Inline Keyboard Builder
- Callback Query
- Exception Handling
- Helper Classes
- Fluent API
- Lightweight
- Open Source

---

📦 Installation
==============

[](#-installation)

```
composer require sobhansgh/rubikabotphp
```

---

🚀 Quick Example
===============

[](#-quick-example)

```
use Sobhansgh\Rubikabotphp\Rubika;
use Sobhansgh\Rubikabotphp\Types\Message;

$bot = new Rubika("YOUR_BOT_TOKEN");

$bot->sendMessage(
    Message::make()
        ->chat("CHAT_ID")
        ->text("Hello Rubika!")
);
```

---

📁 Project Structure
===================

[](#-project-structure)

```
Rubikabotphp/

src/
examples/
docs/
tests/

composer.json

README.md
README_EN.md
README_FA.md

LICENSE

CHANGELOG.md

CONTRIBUTING.md

```

---

📚 Examples
==========

[](#-examples)

Inside the **examples/** directory you will find complete examples for:

- Send Message
- Send Photo
- Send Document
- Send Video
- Send Audio
- Keyboard
- Inline Keyboard
- Router
- Webhook
- Polling

---

⚙ Requirements
==============

[](#-requirements)

- PHP 8.1+
- Composer
- CURL Extension
- JSON Extension

---

📖 Documentation
===============

[](#-documentation-1)

Complete documentation is available in:

- README\_EN.md
- README\_FA.md
- docs/

---

🤝 Contributing
==============

[](#-contributing)

Contributions are welcome.

Please read:

```
CONTRIBUTING.md

```

before submitting Pull Requests.

---

🧪 Testing
=========

[](#-testing)

```
composer test
```

---

🗺 Roadmap
=========

[](#-roadmap)

Version 1.0
-----------

[](#version-10)

- HTTP Client
- Router
- Webhook
- Polling
- File Upload
- Keyboard
- Inline Keyboard
- Helpers
- Examples
- Tests

---

Version 1.1
-----------

[](#version-11)

- More API Coverage
- Better Validation
- More Helper Classes

---

Version 2.0
-----------

[](#version-20)

- Middleware
- Events
- Plugins
- Cache Layer
- Async Requests

---

❤️ Support
==========

[](#️-support)

If you like this project please

⭐ Star the repository

🐞 Report bugs

💡 Suggest features

🤝 Contribute

---

📄 License
=========

[](#-license)

This project is licensed under the MIT License.

See the **LICENSE** file for more information.

---

Made with ❤️ by

Sobhan Ghasemi
--------------

[](#sobhan-ghasemi)

If this project helps you, please give it a ⭐

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance100

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

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

Every ~0 days

Total

4

Last Release

0d ago

Major Versions

v1.0.2 → v2.x-dev2026-06-22

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/33592392?v=4)[Sobhan Ghasemi](/maintainers/sobhansgh)[@sobhansgh](https://github.com/sobhansgh)

---

Top Contributors

[![sobhansgh](https://avatars.githubusercontent.com/u/33592392?v=4)](https://github.com/sobhansgh "sobhansgh (15 commits)")

---

Tags

phpapisdkbotMessengerrubika

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sobhansgh-rubikabotphp/health.svg)

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

###  Alternatives

[jstolpe/instagram-graph-api-php-sdk

Instagram Graph API PHP SDK

138106.8k2](/packages/jstolpe-instagram-graph-api-php-sdk)[clever/clever-php

231.6k](/packages/clever-clever-php)

PHPackages © 2026

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