PHPackages                             visifo-php/laravel-rocketchat-api-wrapper - 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. [API Development](/categories/api)
4. /
5. visifo-php/laravel-rocketchat-api-wrapper

ActiveLibrary[API Development](/categories/api)

visifo-php/laravel-rocketchat-api-wrapper
=========================================

Rocket.chat API wrapper for Laravel.

0.3.7(4y ago)197MITPHPPHP ^8.0

Since Nov 14Pushed 3y ago1 watchersCompare

[ Source](https://github.com/visifo-php/laravel-rocketchat-api-wrapper)[ Packagist](https://packagist.org/packages/visifo-php/laravel-rocketchat-api-wrapper)[ Docs](https://github.com/visifo-php/laravel-rocketchat-api-wrapper)[ GitHub Sponsors](https://github.com/visifo-php)[ RSS](/packages/visifo-php-laravel-rocketchat-api-wrapper/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (11)Versions (13)Used By (0)

Rocket.chat API wrapper for Laravel.
====================================

[](#rocketchat-api-wrapper-for-laravel)

[![Latest Stable Version](https://camo.githubusercontent.com/83b92b680bd03d7e18312351827bdd6ed7b4244b845aedb487791787c2c32c8b/687474703a2f2f706f7365722e707567782e6f72672f76697369666f2d7068702f6c61726176656c2d726f636b6574636861742d6170692d777261707065722f76)](https://packagist.org/packages/visifo-php/laravel-rocketchat-api-wrapper)[![Total Downloads](https://camo.githubusercontent.com/2ae347e59e36eb9d7f1065e8df5a07e32191e04abf439794f34411f30392dcd0/687474703a2f2f706f7365722e707567782e6f72672f76697369666f2d7068702f6c61726176656c2d726f636b6574636861742d6170692d777261707065722f646f776e6c6f616473)](https://packagist.org/packages/visifo-php/laravel-rocketchat-api-wrapper)[![License](https://camo.githubusercontent.com/29e0d656b6774a531da6d38990ab588f1e5d404a99ce8e01ec60f6d2b2e9fbc0/687474703a2f2f706f7365722e707567782e6f72672f76697369666f2d7068702f6c61726176656c2d726f636b6574636861742d6170692d777261707065722f6c6963656e7365)](https://packagist.org/packages/visifo-php/laravel-rocketchat-api-wrapper)[![PHP Version Require](https://camo.githubusercontent.com/65b7431a20a11c2328377c775a58c86a8cf4abf73a18bdda3da63882f2e4abf7/687474703a2f2f706f7365722e707567782e6f72672f76697369666f2d7068702f6c61726176656c2d726f636b6574636861742d6170692d777261707065722f726571756972652f706870)](https://packagist.org/packages/visifo-php/laravel-rocketchat-api-wrapper)

[![codecov](https://camo.githubusercontent.com/7db4cf6caf59d2a38aa5e9bd4ff4898f479259ec02931b4e52a95600b678d9b9/68747470733a2f2f636f6465636f762e696f2f67682f76697369666f2d7068702f6c61726176656c2d726f636b6574636861742d6170692d777261707065722f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d304c394f4730504d394c)](https://codecov.io/gh/visifo-php/laravel-rocketchat-api-wrapper)[![GitHub Tests Action Status](https://camo.githubusercontent.com/4a220a4d1540c06b6b0816fa4c720dafbb57d174770ddf1c7b70f3dba57f5ad1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f76697369666f2d7068702f6c61726176656c2d726f636b6574636861742d6170692d777261707065722f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/visifo-php/laravel-rocketchat-api-wrapper/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/468c08aaebfc493be54a53ac6aa0248ed2b4251289784be7e16997fc837bd902/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f76697369666f2d7068702f6c61726176656c2d726f636b6574636861742d6170692d777261707065722f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/visifo-php/laravel-rocketchat-api-wrapper/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)

[![composer.lock](https://camo.githubusercontent.com/42cf908ec3e843a89a470d50cdc903eb501acf3c768770574a87ba109445c691/687474703a2f2f706f7365722e707567782e6f72672f76697369666f2d7068702f6c61726176656c2d726f636b6574636861742d6170692d777261707065722f636f6d706f7365726c6f636b)](https://packagist.org/packages/visifo-php/laravel-rocketchat-api-wrapper)[![.gitattributes](https://camo.githubusercontent.com/e039b4e3764dca9670f464bcde4a1c8eabc083c995d9135ef6cd8f2f78bd1e6d/687474703a2f2f706f7365722e707567782e6f72672f76697369666f2d7068702f6c61726176656c2d726f636b6574636861742d6170692d777261707065722f67697461747472696275746573)](https://packagist.org/packages/visifo-php/laravel-rocketchat-api-wrapper)

---

This is a Laravel RocketChat REST API Wrapper. It's simple to use, typesafe and object-oriented.

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

[](#installation)

You can install the package via composer:

```
composer require visifo-php/laravel-rocketchat-api-wrapper
```

You can publish the config file with:

```
php artisan vendor:publish --provider="visifo\Rocket\RocketServiceProvider" --tag="laravel-rocketchat-api-wrapper-config"
```

You have to specify your RocketChat Url and the UserId and AuthToken to authenticate with the RocketChat API in your Laravel .env.

You only have to specify the Password if you use the users.update Endpoint, which requires 2FA

```
ROCKET_URL=your-rocketchat.com

ROCKET_USER_ID=RLhxwWHn9RjiWjtdG
ROCKET_AUTH_TOKEN=Z9__Y1_Es6OB2kMf4dBD3I6qygRT3s-Lla67pf8AU1p
# for users.update you need to set the Password
ROCKET_USER_PASSWORD=myPassword
```

Usage
-----

[](#usage)

You can send Requests to an Endpoint via the Endpoint Objects. You can get them from the RocketChat Client like this

```
$channelsEndpoint = \visifo\Rocket\rocketChat()->channels();
$chatEndpoint = \visifo\Rocket\rocketChat()->chat();
$commandsEndpoint = \visifo\Rocket\rocketChat()->commands();
$rolesEndpoint = \visifo\Rocket\rocketChat()->roles();
$usersEndpoint = \visifo\Rocket\rocketChat()->users();
```

From there you can make API calls

```
$channel = $channelsEndpoint->create("myChannel");
// $channel has Type: visifo\Rocket\Objects\Channels\Channel

$channelsEndpoint->setTopic($channel->id, "myTopic")
```

All functions who return the Response from RocketChat will deserialize it into its own simplified Object. Also, some properties gets renamed to something more simple or meaningful, for example "t" to "type" or "\_id" to "id"

Alternatively you can make Requests directly via the RocketChat Client which will result in the raw stdClass you get from the RocketChat API

```
$rocketChatClient = \visifo\Rocket\rocketChat()

$channel = $rocketChatClient->post("channels.create", ['name' => 'myChannel']);
// $channel has Type: stdClass

$rocketChatClient->post("channels.setTopic", ['roomId' => $channel->_id, 'topic' => 'myTopic'])
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Sergej Tihonov](https://github.com/Sergej-Tihonov)
- [Luka Heddens](https://github.com/frschi)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 51.7% 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 ~13 days

Total

12

Last Release

1490d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3756665fca21e9394353f53f77c529b1b5f8feec5bc76e41fd0c718a88d39a55?d=identicon)[visifo](/maintainers/visifo)

---

Top Contributors

[![frschi](https://avatars.githubusercontent.com/u/32005393?v=4)](https://github.com/frschi "frschi (62 commits)")[![Sergej-Tihonov](https://avatars.githubusercontent.com/u/15265981?v=4)](https://github.com/Sergej-Tihonov "Sergej-Tihonov (58 commits)")

---

Tags

laravelrocketchatvisifovisifo-phplaravel-rocketchat-api-wrapper

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/visifo-php-laravel-rocketchat-api-wrapper/health.svg)

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

###  Alternatives

[simplestats-io/laravel-client

Client for SimpleStats!

4515.5k](/packages/simplestats-io-laravel-client)[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[ryangjchandler/bearer

Minimalistic token-based authentication for Laravel API endpoints.

8129.8k](/packages/ryangjchandler-bearer)[codebar-ag/laravel-docuware

DocuWare integration with Laravel

1221.1k](/packages/codebar-ag-laravel-docuware)[combindma/laravel-facebook-pixel

Meta pixel integration for Laravel

4956.9k](/packages/combindma-laravel-facebook-pixel)[stechstudio/laravel-hubspot

A Laravel SDK for the HubSpot CRM Api

2971.0k](/packages/stechstudio-laravel-hubspot)

PHPackages © 2026

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