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

ActiveLibrary

limingxinleo/easemob
====================

easemob

1.1.1(9y ago)050MITPHPPHP &gt;=5.4.0

Since Jan 5Pushed 9y ago1 watchersCompare

[ Source](https://github.com/limingxinleo/easemob)[ Packagist](https://packagist.org/packages/limingxinleo/easemob)[ RSS](/packages/limingxinleo-easemob/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

easemob
=======

[](#easemob)

[![Total Downloads](https://camo.githubusercontent.com/f339b71da2a9712bc39304d4ea06569d6db0e683d4f76e78f3dae3db288c9333/68747470733a2f2f706f7365722e707567782e6f72672f6c696d696e6778696e6c656f2f656173656d6f622f646f776e6c6f616473)](https://packagist.org/packages/limingxinleo/easemob)[![Latest Stable Version](https://camo.githubusercontent.com/edc293ddbc23944f024a1ff22036b19f5c4885d539a155eebf6e3e588d6b31f8/68747470733a2f2f706f7365722e707567782e6f72672f6c696d696e6778696e6c656f2f656173656d6f622f762f737461626c65)](https://packagist.org/packages/limingxinleo/easemob)[![Latest Unstable Version](https://camo.githubusercontent.com/fff9a51a3750de2205363b56c3cc046da64cf8e9f383d4f7d7eaf2067f4433a7/68747470733a2f2f706f7365722e707567782e6f72672f6c696d696e6778696e6c656f2f656173656d6f622f762f756e737461626c65)](https://packagist.org/packages/limingxinleo/easemob)[![License](https://camo.githubusercontent.com/85eac2ea18a7bc28b8360c2f3883f8ab1dad4320676c99586627bceeffe03d3b/68747470733a2f2f706f7365722e707567782e6f72672f6c696d696e6778696e6c656f2f656173656d6f622f6c6963656e7365)](https://packagist.org/packages/limingxinleo/easemob)

安装方法
----

[](#安装方法)

```
composer require limingxinleo/easemob

```

使用方法
----

[](#使用方法)

- 初始化

```
use limx\tools\Easemob;
$option = [
    'client_id' => env('EASEMOB_ID'),
    'client_secret' => env('EASEMOB_SECRET'),
    'org_name' => env('EASEMOB_ORG_NAME'),
    'app_name' => env('EASEMOB_APP_NAME'),
];
$easemob = new Easemob($option);

```

- 发送环信

```
$res = $easemob->sendToUsers(['receiver'], 'sender', ['msg' => '环信测试']);

```

- 设置StorageAdapter

```
$easemob->setStorageAdapter(function ($data) {
    $file = BASE_PATH . '/storage/cache/data/huanxin';
    if ($data) {
        // 存储
        file_put_contents($file, $data);
    } else {
        if (file_exists($file)) {
            return file_get_contents($file);
        }
        return false;
    }
});

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

3

Last Release

3411d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e427ffcc825cdaf0253c4f8c212a6d6da66dce645f7a49316fbe63d18f7ca5e9?d=identicon)[limingxinleo](/maintainers/limingxinleo)

---

Top Contributors

[![limingxinleo](https://avatars.githubusercontent.com/u/16648551?v=4)](https://github.com/limingxinleo "limingxinleo (8 commits)")

### Embed Badge

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

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

PHPackages © 2026

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