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

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

atdev/rocket-chat
=================

Rocket Chat REST API PHP Wrapper Library

1.0.14(3y ago)2889.5k↓58.3%18[2 issues](https://github.com/alekseykuleshov/rocket-chat/issues)[6 PRs](https://github.com/alekseykuleshov/rocket-chat/pulls)1MITPHPPHP &gt;=5.6.0

Since May 18Pushed 2y ago6 watchersCompare

[ Source](https://github.com/alekseykuleshov/rocket-chat)[ Packagist](https://packagist.org/packages/atdev/rocket-chat)[ Docs](https://github.com/alekseykuleshov/rocket-chat)[ RSS](/packages/atdev-rocket-chat/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (6)Versions (21)Used By (1)

Rocket Chat Rest API PHP Wrapper Library
========================================

[](#rocket-chat-rest-api-php-wrapper-library)

This is a wrapper for Rest API of Rocket Chat:

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

[](#installation)

This library is installed via [Composer](http://getcomposer.org/). You will need to require `atdev/rocket-chat`:

```
composer require atdev/rocket-chat:~1.0

```

How to use
----------

[](#how-to-use)

### LOGIN

[](#login)

```
// Firstly, init
\ATDev\RocketChat\Chat::setUrl("http://chat.me"); // No trailing /

// Now, login
$result = \ATDev\RocketChat\Chat::login("[USER LOGIN]", "[USER PASSWORD]");

if (!$result) {

	// Log the error
	$error = \ATDev\RocketChat\Chat::getError();
}
```

### GET CURRENTLY LOGGED IN USER

[](#get-currently-logged-in-user)

```
$who = \ATDev\RocketChat\Chat::me();

if (!$who) {

	// Log the error
	$error = \ATDev\RocketChat\Chat::getError();
}
```

### LOGOUT

[](#logout)

```
\ATDev\RocketChat\Chat::logout();
```

Now, when you are logged in, you can:

[Manage Users](src/Users)

[Manage Channels](src/Channels)

[Manage Groups](src/Groups)

[Manage Messages](src/Messages)

[Manage Ims](src/Ims)

[Manage Roles](src/Roles)

Unit tests
----------

[](#unit-tests)

Tests are run by `./vendor/bin/phpunit tests`. Although the library code is designed to be compatible with `php 5.6`, testing requires `php 7.3` as minimum because of `phpunit` version `9`.

PHP Code Fixer
--------------

[](#php-code-fixer)

[PHP-CS-Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer) is used to fix automatically coding standard issues. `.php_cs.dist` is set to handle [PSR-12](https://www.php-fig.org/psr/psr-12/) coding style. To lint code against code style run `./vendor/bin/php-cs-fixer fix --verbose --show-progress=estimating --dry-run`. To fix code styles automatically run above command without `--dry-run` option.

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity44

Moderate usage in the ecosystem

Community21

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

15

Last Release

1218d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3356666?v=4)[akuleshov](/maintainers/akuleshov)[@AKuleshov](https://github.com/AKuleshov)

---

Top Contributors

[![ASergey](https://avatars.githubusercontent.com/u/231283?v=4)](https://github.com/ASergey "ASergey (83 commits)")[![cvalex21](https://avatars.githubusercontent.com/u/15844805?v=4)](https://github.com/cvalex21 "cvalex21 (58 commits)")[![alekseykuleshov](https://avatars.githubusercontent.com/u/6037974?v=4)](https://github.com/alekseykuleshov "alekseykuleshov (57 commits)")[![marc-farre](https://avatars.githubusercontent.com/u/23310825?v=4)](https://github.com/marc-farre "marc-farre (3 commits)")

---

Tags

apirestrocketchat

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/atdev-rocket-chat/health.svg)

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

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k11](/packages/tempest-framework)[xeroapi/xero-php-oauth2

Xero official PHP SDK for oAuth2 generated with OpenAPI spec 3

1054.6M18](/packages/xeroapi-xero-php-oauth2)[onesignal/onesignal-php-api

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

34199.5k2](/packages/onesignal-onesignal-php-api)[dreamfactory/df-core

DreamFactory(tm) Core Components

1652.0k38](/packages/dreamfactory-df-core)[zenditplatform/zendit-php-sdk

PHP client for Zendit API

1194.4k](/packages/zenditplatform-zendit-php-sdk)

PHPackages © 2026

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