PHPackages                             kynno/smartbots-bundle - 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. kynno/smartbots-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

kynno/smartbots-bundle
======================

Symfony integration for SmartBots from SecondLife

v0.3(6y ago)22.7k[1 issues](https://github.com/Kynno/SmartBotsBundle/issues)MITPHPPHP ^7.1

Since Sep 5Pushed 6y agoCompare

[ Source](https://github.com/Kynno/SmartBotsBundle)[ Packagist](https://packagist.org/packages/kynno/smartbots-bundle)[ RSS](/packages/kynno-smartbots-bundle/feed)WikiDiscussions master Synced 3d ago

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

SmartBotsBundle
===============

[](#smartbotsbundle)

[![Build Status](https://camo.githubusercontent.com/d6f9b01953191f6dc6bbbd7026ba05ee35fd22065e59eb8435993cfd4fe17cfd/68747470733a2f2f7472617669732d63692e636f6d2f4b796e6e6f2f536d617274426f747342756e646c652e7376673f746f6b656e3d7a526a614d61756a775356535745375563586358266272616e63683d6d6173746572)](https://travis-ci.com/Kynno/SmartBotsBundle)[![GitHub release (latest by date)](https://camo.githubusercontent.com/b74c478abc42869d65a61682479d2e4a354c987343cbdd6f1656d9405b4e7bae/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6b796e6e6f2f536d617274426f747342756e646c65)](https://camo.githubusercontent.com/b74c478abc42869d65a61682479d2e4a354c987343cbdd6f1656d9405b4e7bae/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6b796e6e6f2f536d617274426f747342756e646c65)[![GitHub](https://camo.githubusercontent.com/b1267814a5151b1da6e8314bd3a02f57c76ec29ecc79355f9cc1fc110693683c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6b796e6e6f2f536d617274426f747342756e646c65)](https://camo.githubusercontent.com/b1267814a5151b1da6e8314bd3a02f57c76ec29ecc79355f9cc1fc110693683c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6b796e6e6f2f536d617274426f747342756e646c65)[![SymfonyInsight](https://camo.githubusercontent.com/23d15224ee7af8979f922ab89ab0b8f5ab14ee709aefb42f11f3cf89b4396c70/68747470733a2f2f696e73696768742e73796d666f6e792e636f6d2f70726f6a656374732f30363234343236612d353364302d346362622d396432392d6663653333613165623333312f6d696e692e737667)](https://insight.symfony.com/projects/0624426a-53d0-4cbb-9d29-fce33a1eb331)

[SmartBots](https://www.mysmartbots.com/) is a service provider which allows you to manage your Second Life group and/or control your Second Life bots. All SmartBots services use the abilities of SL bots: group inviters, group chat translators, automatic notice delivery system etc.

This bundle integrates a fast way to use their API with minimum settings.

You can find more informations about them at [http://www.mysmartbots.com/docs/SmartBots\_Documentation](http://www.mysmartbots.com/docs/SmartBots_Documentation)

Prerequisites
=============

[](#prerequisites)

In order to use this bundle, you will need to get your [developer API Key](https://www.mysmartbots.com/process/adminbot.html).

- PHP 7.1+
- Symfony 3.4 / 4.0+ / 5.0+

Installation
============

[](#installation)

Applications that use Symfony Flex
----------------------------------

[](#applications-that-use-symfony-flex)

Open a command console, enter your project directory and execute:

```
$ composer require kynno/smartbots-bundle
```

Applications that don't use Symfony Flex
----------------------------------------

[](#applications-that-dont-use-symfony-flex)

### Step 1: Download the Bundle

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require kynno/smartbots-bundle
```

This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

### Step 2: Enable the Bundle

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `config/bundles.php` file of your project:

```
// config/bundles.php

return [
    // ...
    Kynno\SmartBotsBundle\SmartBotsBundle::class => ['all' => true],
];
```

Usage
=====

[](#usage)

The list of the commands available are available on the official website of SmartBots: [https://www.mysmartbots.com/dev/docs/HTTP\_API/Bot\_Commands](https://www.mysmartbots.com/dev/docs/HTTP_API/Bot_Commands)

This is an example of configuration for `config/packages/smartbots.yaml`,

```
kynno_smartbots:
    api_key:
    bots:
        Kynno:
            name: "KynnoSystem Resident"
            botSecret: pwd
        Leekyn:
            name: "Leekyn Resident"
            botSecret: pwd
```

Under the bots key, you can have multiple bots. In this example, `Kynno` and `Leekyn` are the IDs of the bots. Using the `SmartBots` service, you need to use these IDs instead of the full name of your bots.

Of course, you can have only one bot.

---

Once you configured your credentials, you can start using the service `Kynno\SmartBotsBundle\Service\SmartBots`.

```
