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

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

viper-vlad/rocket-chat-php-wrapper
==================================

Rocket Chat REST API PHP Wrapper Library

1.0.8(4y ago)11232MITPHPPHP &gt;=7.4

Since May 18Pushed 4y agoCompare

[ Source](https://github.com/VIPER-VLAD/rocket-chat-php-wrapper)[ Packagist](https://packagist.org/packages/viper-vlad/rocket-chat-php-wrapper)[ Docs](https://github.com/alekseykuleshov/rocket-chat)[ RSS](/packages/viper-vlad-rocket-chat-php-wrapper/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (6)Versions (12)Used By (0)

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

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity62

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

Total

9

Last Release

1670d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.6.0

1.0.7PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/6baa6b4b394a9fe1bd1c44e8c3aff10e67739bb3c40819d011cbe8164bd74f94?d=identicon)[VIPER-VLAD](/maintainers/VIPER-VLAD)

---

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 (45 commits)")[![VIPER-VLAD](https://avatars.githubusercontent.com/u/56378416?v=4)](https://github.com/VIPER-VLAD "VIPER-VLAD (3 commits)")

---

Tags

apirestrocketchat

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/viper-vlad-rocket-chat-php-wrapper/health.svg)

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

###  Alternatives

[xeroapi/xero-php-oauth2

Xero official PHP SDK for oAuth2 generated with OpenAPI spec 3

1054.3M14](/packages/xeroapi-xero-php-oauth2)[atdev/rocket-chat

Rocket Chat REST API PHP Wrapper Library

2885.4k1](/packages/atdev-rocket-chat)[cybercog/youtrack-rest-php

YouTrack REST API PHP Client.

37149.2k3](/packages/cybercog-youtrack-rest-php)[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

Documentation for all of Ory Hydra's APIs.

17435.9k](/packages/ory-hydra-client)[zenditplatform/zendit-php-sdk

PHP client for Zendit API

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

PHPackages © 2026

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