PHPackages                             bt/rocketchat-php - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. bt/rocketchat-php

ActiveLibrary[HTTP &amp; Networking](/categories/http)

bt/rocketchat-php
=================

A PHP interface to send incoming webhooks.

1.1(10y ago)523.5k—0%2MITPHP

Since Apr 27Pushed 2y ago2 watchersCompare

[ Source](https://github.com/bt/rocketchat-php)[ Packagist](https://packagist.org/packages/bt/rocketchat-php)[ RSS](/packages/bt-rocketchat-php/feed)WikiDiscussions master Synced 2mo ago

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

rocketchat-php
==============

[](#rocketchat-php)

This library allows you to easily create *Incoming Webhooks* in for [Rocket.Chat](http://rocket.chat) in PHP.

Installing
==========

[](#installing)

The recommended way to install `rocketchat-php` is through [Composer](http://getcomposer.org/).

```
composer require bt/rocketchat-php

```

You can then use `rocketchat-php` with Composer's auto-loader.

```
require 'vendor/autoload.php'
```

Text Example
============

[](#text-example)

A getting started code snippet. This will post a message to the webhook:

```
$client = new \RocketChatPhp\Client('https://demo.rocket.chat', 'webhook_token');
$client->payload([
    'text' => 'This will be sent to the webhook!'
]);
```

Attachments
===========

[](#attachments)

You can also add attachments to the message like follows:

```
// Use this to toggle short or long text attachments.
$isShort = true;

$attachment = new \RocketChatPhp\Attachment('The text to be displayed if the client cannot load the attachment.', '#ffffff');
$attachment->addField('Field Title', 'Field Value', $isShort);
$attachment->addField('Field Title2', 'Field Value2', $isShort);

$client = new \RocketChatPhp\Client('https://demo.rocket.chat', 'webhook_token');
$client->payload([
    'text' => 'This is a test message with attachments!',
    'attachments' => [
    	$attachment->toArray()
    ]
]);
```

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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 ~1 days

Total

2

Last Release

3672d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/84a4c4a396b6e2a576f051741daee750d6d3303d00d9312430638c0abd8803fd?d=identicon)[bertramtruong](/maintainers/bertramtruong)

---

Top Contributors

[![bt](https://avatars.githubusercontent.com/u/1100843?v=4)](https://github.com/bt "bt (6 commits)")[![dzmitrybitsiutski](https://avatars.githubusercontent.com/u/158209542?v=4)](https://github.com/dzmitrybitsiutski "dzmitrybitsiutski (2 commits)")

### Embed Badge

![Health badge](/badges/bt-rocketchat-php/health.svg)

```
[![Health](https://phpackages.com/badges/bt-rocketchat-php/health.svg)](https://phpackages.com/packages/bt-rocketchat-php)
```

###  Alternatives

[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[omniphx/forrest

A Laravel library for Salesforce

2724.4M8](/packages/omniphx-forrest)[akamai-open/edgegrid-client

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client\_Auth.html

482.5M6](/packages/akamai-open-edgegrid-client)[muhammadhuzaifa/telescope-guzzle-watcher

Telescope Guzzle Watcher provide a custom watcher for intercepting http requests made via guzzlehttp/guzzle php library. The package uses the on\_stats request option for extracting the request/response data. The watcher intercept and log the request into the Laravel Telescope HTTP Client Watcher.

98239.8k1](/packages/muhammadhuzaifa-telescope-guzzle-watcher)[onesignal/onesignal-php-api

A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

34170.2k2](/packages/onesignal-onesignal-php-api)[ory/hydra-client-php

Documentation for all of Ory Hydra's APIs.

1710.8k](/packages/ory-hydra-client-php)

PHPackages © 2026

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