PHPackages                             mamadali/yii2-bale-bot - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mamadali/yii2-bale-bot

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

mamadali/yii2-bale-bot
======================

Bale bot

v1.0(4y ago)09Apache-2.0PHP

Since Jan 12Pushed 4y ago1 watchersCompare

[ Source](https://github.com/MamadAliGit/yii2-bale-bot)[ Packagist](https://packagist.org/packages/mamadali/yii2-bale-bot)[ RSS](/packages/mamadali-yii2-bale-bot/feed)WikiDiscussions master Synced 1mo ago

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

Bale Bot Extension
==================

[](#bale-bot-extension)

[Bale bot api docs](https://devbale.ir/api)

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist mamadali/yii2-bale-bot "*"

```

or add

```
"mamadali/yii2-bale-bot": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

First create your bot in @botfateher in [bale messanger](https://bale.ai) and get bot token

Then add this code to components section of config.php or if use advanced project common/config/main.php

```
    'components' => [
        ...
        'bale' => [
            'class' => 'mamadali\bale\Bale',
            'botToken' => '',
        ],
        ...
    ];
```

Once the extension is installed, simply use it in your code by :

```
