PHPackages                             filippo-toso/driver-rocket-chat - 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. filippo-toso/driver-rocket-chat

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

filippo-toso/driver-rocket-chat
===============================

Rocket Chat driver for BotMan

v2.0.2(6y ago)81941MITPHPPHP &gt;=7.0

Since Apr 12Pushed 6y agoCompare

[ Source](https://github.com/filippotoso/driver-rocket-chat)[ Packagist](https://packagist.org/packages/filippo-toso/driver-rocket-chat)[ Docs](http://github.com/filippo.toso/driver-rocket-chat)[ RSS](/packages/filippo-toso-driver-rocket-chat/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (8)Used By (0)

BotMan Rocket Chat Driver
=========================

[](#botman-rocket-chat-driver)

BotMan driver to create bots for [RocketChat](https://rocket.chat/)

Installation &amp; Setup
========================

[](#installation--setup)

First you need to pull in the RocketChat Driver.

```
composer require filippo-toso/driver-rocket-chat

```

Then load the driver before creating the BotMan instance (only when you don't use BotMan Studio):

```
DriverManager::loadDriver(\FilippoToso\BotMan\Drivers\RocketChat\RocketChatDriver::class);

// Create BotMan instance
BotManFactory::create($config);

```

This driver requires a valid and secure URL in order to set up webhooks and receive events and information from the chat users. This means your application should be accessible through an HTTPS URL.

[ngrok](https://ngrok.com/) is a great tool to create such a public HTTPS URL for your local application. If you use Laravel Valet, you can create it with "valet share" as well.

To connect BotMan with your RocketChat server, you need to:

1. Create an integration for outgoing messages. You can find more details about this process in the [RocketChat documentation](https://rocket.chat/docs/administrator-guides/integrations/).
2. Create a bot user in RocketChat that will "talk" with the other users.

Once you have setup the integration and created the user, you need to configure the driver. Open the app/config/botman/rocketchat.php file and insert the required information in the token, endpoint and bot parameters. Don't touch the 'matchingKeys' array.

Authentication
==============

[](#authentication)

To send messages as the bot user the driver needs to authenticate with the [REST API](https://rocket.chat/docs/developer-guides/rest-api/authentication/login/). To avoid the need to re-authenticate each time the bot needs to send a message, you can use the RocketChatAuth support class to get the access token and save it for later use. Here is a sample code you can use as a starting point.

```
use Illuminate\Support\Facades\Cache;
use FilippoToso\BotMan\Drivers\RocketChat\RocketChatAuth;

$auth = Cache::remember('rocketchat.auth', 60 * 24 * 30, function () {
    return RocketChatAuth::getAuth(
        config('botman.rocketchat.bot.username'),
        config('botman.rocketchat.bot.password'),
        config('botman.rocketchat.endpoint')
    );
});

config(['botman.rocketchat.auth' => $auth]);

```

You must execute it before creating the BotMan instance. It checks if the auth details are saved in Laravel's cache. If they aren't, RocketChatAuth authenticates with the REST API and saves the access token and user id in the cache for later use. These details are also saved in the botman.rocketchat.auth configuration array where the driver searches for them.

Supported Features
==================

[](#supported-features)

Currently this driver supports only text messages (for both questions and answers). I'm working on the attachment implementation. If you want to contribute, get in touch!

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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 ~76 days

Recently: every ~114 days

Total

7

Last Release

2493d ago

Major Versions

v1.0.4 → v2.0.02018-04-28

### Community

Maintainers

![](https://www.gravatar.com/avatar/55d89f2d44fb12225de2119994028ee69e36770bcf33c2b1ddf0d6672d28151b?d=identicon)[filippo.toso](/maintainers/filippo.toso)

---

Top Contributors

[![filippotoso](https://avatars.githubusercontent.com/u/26958813?v=4)](https://github.com/filippotoso "filippotoso (10 commits)")

---

Tags

botBotmanrocketchat

### Embed Badge

![Health badge](/badges/filippo-toso-driver-rocket-chat/health.svg)

```
[![Health](https://phpackages.com/badges/filippo-toso-driver-rocket-chat/health.svg)](https://phpackages.com/packages/filippo-toso-driver-rocket-chat)
```

###  Alternatives

[botman/botman

Create messaging bots in PHP with ease.

6.2k1.5M97](/packages/botman-botman)[botman/driver-web

Web driver for BotMan

86658.7k7](/packages/botman-driver-web)[botman/tinker

BotMan tinker command for your Laravel BotMan project

102201.2k4](/packages/botman-tinker)[botman/driver-facebook

Facebook Messenger driver for BotMan

71301.6k6](/packages/botman-driver-facebook)[botman/driver-twilio

Twilio driver for BotMan

1227.7k2](/packages/botman-driver-twilio)[botman/driver-amazon-alexa

Amazon Alexa driver for BotMan

156.9k2](/packages/botman-driver-amazon-alexa)

PHPackages © 2026

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