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.7k—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 3d 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 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

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

3717d 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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[guzzlehttp/guzzle-services

Provides an implementation of the Guzzle Command library that uses Guzzle service descriptions to describe web services, serialize requests, and parse responses into easy to use model structures.

25711.0M191](/packages/guzzlehttp-guzzle-services)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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