PHPackages                             erfanvahabpour/bale-bot-sdk - 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. erfanvahabpour/bale-bot-sdk

ActiveLibrary[API Development](/categories/api)

erfanvahabpour/bale-bot-sdk
===========================

The Unofficial Bale Bot API PHP SDK

v1.0.5(1y ago)51.2k↓66.7%1[2 issues](https://github.com/ErfanVahabpour/Bale-Bot-SDK/issues)BSD-4-ClausePHPPHP ^8.0

Since Nov 8Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ErfanVahabpour/Bale-Bot-SDK)[ Packagist](https://packagist.org/packages/erfanvahabpour/bale-bot-sdk)[ Docs](https://github.com/ErfanVahabpour/Bale-Bot-SDK)[ Fund](https://aqayepardakht.ir/efive)[ RSS](/packages/erfanvahabpour-bale-bot-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (6)Versions (7)Used By (0)

Bale Bot API - PHP SDK
======================

[](#bale-bot-api---php-sdk)

> Bale Bot PHP SDK lets you develop Bale Bots in PHP easily! Supports Laravel out of the box.
>
> [Bale Bot API](https://dev.bale.ai/) is an HTTP-based interface created for developers keen on building bots for Bale.
>
> To learn more about the Bale Bot API, please consult the [Introduction to Bots](https://dev.bale.ai/) and [Bot FAQ](https://docs.bale.ai/) on official Bale site.
>
> To get started writing your bots using this SDK, Please refer the [documentation](https://bale-bot-sdk.efive.net/).

Documentation
-------------

[](#documentation)

Documentation for the SDK can be found on the [website](https://bale-bot-sdk.efive.net/).

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

[](#installation)

```
composer require erfanvahabpour/bale-bot-sdk
```

Examples
--------

[](#examples)

### getMe Method

[](#getme-method)

A simple method for testing your bot's auth token.
Returns basic information about the bot in form of a User object.

```
$Bale = new Api($token);

$response = $Bale->getMe(); // return User object
```

### sendMessage Method

[](#sendmessage-method)

Send text messages.

```
$Bale = new Api($token);

$response = $Bale->sendMessage([
    'chat_id' => '2100855301',
    'text' => 'This is a text.'
]); // return Message object
```

### sendMessage Method in Laravel

[](#sendmessage-method-in-laravel)

Send text messages.

```
use EFive\Balle\Laravel\Facades\Bale;

$response = Bale::sendMessage([
    'chat_id' => '2100855301',
    'text' => 'This is a text.'
]); // return Message object
```

### Get first name of a chat

[](#get-first-name-of-a-chat)

Show the first name of a chat(private chats only)

```
$Bale = new Api($token);

$response = $Bale->getChat([
    'chat_id' => '2100855301'
]); // return User object

echo $response->getFirstName();
```

### Setting multiple bots

[](#setting-multiple-bots)

For setting multiple bots in a single application

```
use EFive\Bale\BotsManager;

$config = [
    'bots' => [
        'firstBot' => [
            'token' => $firstBotToken,
        ],
        'secondBot' => [
            'token' => $secondBotToken,
        ],
    ]
];

$bale = new BotsManager($config);

// getMe Method
$response = $bale->bot('firstBot')->getMe(); // return User object
```

Disclaimer
----------

[](#disclaimer)

This project and its author are neither associated nor affiliated with [Bale](https://bale.ai/) in any way. Please see the [License](https://github.com/ErfanVahabpour/Bale-Bot-SDK/blob/main/LICENSE.md) for more details.

License
-------

[](#license)

This project is released under the [BSD 4-Clause](https://github.com/ErfanVahabpour/Bale-Bot-SDK/blob/main/LICENSE.md) License.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance42

Moderate activity, may be stable

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.4% 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 ~38 days

Recently: every ~47 days

Total

6

Last Release

367d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/139115035?v=4)[Erfan Vahabpour](/maintainers/ErfanVahabpour)[@ErfanVahabpour](https://github.com/ErfanVahabpour)

---

Top Contributors

[![ErfanVahabpour](https://avatars.githubusercontent.com/u/139115035?v=4)](https://github.com/ErfanVahabpour "ErfanVahabpour (62 commits)")[![gurleenjammu](https://avatars.githubusercontent.com/u/112728051?v=4)](https://github.com/gurleenjammu "gurleenjammu (1 commits)")

---

Tags

balebale-bot-apibale-bot-sdkbale-notbotlaravellaravel-balephpphp-sdklaravelBalebale botbale bot apibale sdkbale phplaravel bale

### Embed Badge

![Health badge](/badges/erfanvahabpour-bale-bot-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/erfanvahabpour-bale-bot-sdk/health.svg)](https://phpackages.com/packages/erfanvahabpour-bale-bot-sdk)
```

###  Alternatives

[irazasyed/telegram-bot-sdk

The Unofficial Telegram Bot API PHP SDK

3.3k4.5M84](/packages/irazasyed-telegram-bot-sdk)[telegram-bot-sdk/telegram-bot-sdk

The Telegram Bot API PHP SDK

32480.5k](/packages/telegram-bot-sdk-telegram-bot-sdk)

PHPackages © 2026

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