PHPackages                             light/easemob - 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. light/easemob

ActiveLibrary

light/easemob
=============

easemob

0.1.5(9y ago)290[1 issues](https://github.com/lichunqiang/easemob/issues)MITPHPPHP &gt;=5.5.0

Since Jan 28Pushed 9y ago1 watchersCompare

[ Source](https://github.com/lichunqiang/easemob)[ Packagist](https://packagist.org/packages/light/easemob)[ RSS](/packages/light-easemob/feed)WikiDiscussions dev Synced 2mo ago

READMEChangelog (1)Dependencies (6)Versions (8)Used By (0)

Easemob SDK
-----------

[](#easemob-sdk)

Easemob Restful Api SDK for PHP.

[![Build Status](https://camo.githubusercontent.com/257e0bd17a5251e8a18d9133bb01afde140c249d22cc4efb54cbc131924ea374/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6c696368756e7169616e672f656173656d6f622e7376673f7374796c653d666c61742d737175617265)](http://travis-ci.org/lichunqiang/easemob)[![version](https://camo.githubusercontent.com/6a4fdd97d306b7f8270ffb15785341a6dc66a718ad57605a602dd62274992b6c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c696768742f656173656d6f622e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/light/easemob)[![Download](https://camo.githubusercontent.com/4a1c0bd958b222c2ebbf1342bab16c087532859abe547ca37d0696a1530e316a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c696768742f656173656d6f622e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/light/easemob)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/fd67f6f0696a98aa2aac3f83c1344ef18fe210f3731093ac3aaf84f5fb14e411/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6c696368756e7169616e672f656173656d6f622e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/lichunqiang/easemob)[![Code Coverage](https://camo.githubusercontent.com/c62769db2b2f8a206678ca481f85f079106fc48c5b6c0853684dd6205fe261ca/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6c696368756e7169616e672f656173656d6f622e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/lichunqiang/easemob)[![Contact](https://camo.githubusercontent.com/75bf8da95e146782f05a9a4c946f35fed67adbea1b2bf3c15eef0f69be64c8d8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f776569626f2d406368756e7169616e672d626c75652e7376673f7374796c653d666c61742d737175617265)](http://weibo.com/chunqiang)

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist light/easemob "*"

```

or add

```
"light/easemob": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

```
use Monolog\Logger;

$easemob = new Easemob([
  'enterpriseId' => 'enterpriseID',
  'appId' => 'appID',
  'clientId' => 'clientID',
  'clientSecret' => 'clientSecret',
  'log' => [
      'file' => '/var/easemob.log',
      'level' =>Logger::DEBUG,
  ],
]);

```

### 用户系统

[](#用户系统)

```
$user = $easemob->user;

```

- 注册单个用户 `$user->register(['username' => 11, 'password' => 'password'])`
- 注册多个用户 `$user->register([['username' => 1, 'password' => 'password'], ['username' => 2, 'password' => 'password'])`
- 获取单个用户 `$user->one(1)`
- 获取所有用户 `$user->all(/*$cursor*//*, $limit = 20*/)`
- 删除单个用户 `$user->remove(1)`
- 删除多个用户 `$user->batchRemove(/*$count = 100*/)`...

### 消息系统

[](#消息系统)

```
$message = $user->message;

//发送文本消息
$text = new \light\Easemob\Message\Text(['msg' => 'hello']);
$message->send($text);

```

....

License
-------

[](#license)

[![MIT](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~76 days

Recently: every ~95 days

Total

6

Last Release

3373d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ead2ef2c9862aa3d75a97de86af1e3cfa919886e8981bf0808cddd93f563777?d=identicon)[light](/maintainers/light)

---

Top Contributors

[![lichunqiang](https://avatars.githubusercontent.com/u/2433916?v=4)](https://github.com/lichunqiang "lichunqiang (20 commits)")

---

Tags

easemobeasemob-phpeasemob-sdk

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/light-easemob/health.svg)

```
[![Health](https://phpackages.com/badges/light-easemob/health.svg)](https://phpackages.com/packages/light-easemob)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[magento/community-edition

Magento 2 (Open Source)

12.1k52.1k10](/packages/magento-community-edition)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[tempest/framework

The PHP framework that gets out of your way.

2.1k23.1k9](/packages/tempest-framework)

PHPackages © 2026

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