PHPackages                             whereof/easy-im - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. whereof/easy-im

Abandoned → [pkg6/easy-im](/?search=pkg6%2Feasy-im)Library[Utility &amp; Helpers](/categories/utility)

whereof/easy-im
===============

非官方即时通信 IM，支持腾讯IM，环信IM，极光IM，融云IM，网易云信IM等

0.2.1(2y ago)02.1k2MITPHPPHP &gt;7.4

Since Nov 1Pushed 2y agoCompare

[ Source](https://github.com/pkg6/easy-im)[ Packagist](https://packagist.org/packages/whereof/easy-im)[ Docs](https://github.com/pkg6/easy-im)[ RSS](/packages/whereof-easy-im/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (3)Dependencies (10)Versions (5)Used By (0)

 **非官方即时通信SDK easy-im**

> 非官方即时通信SDK，支持腾讯IM，环信IM，极光IM，融云IM，网易云信IM等

安装
--

[](#安装)

```
composer require pkg6/easy-im

```

请求日志开启
------

[](#请求日志开启)

```
\Pkg6\easyIm\Kernel\BaseClient::$request_log=true;

```

自定义缓存
-----

[](#自定义缓存)

> 基于

```
$config = [
    'appId'      => '5978322198',
    'identifier' => 'administrator',
    'secretKey'  => 'nfugb53xtlhyfq2kgiriganruyoagh93it1zwysmh2tmj5tnnmuqhd2og5ofktjt',
    'cache'      => [
        //必须定义
        "class"         => \Pkg6\Cache\cache\driver\File::class,
        //其他选项
        'expire'        => 0,
        'cache_subdir'  => true,
        'prefix'        => '',
        'path'          => './cache/',
        'hash_type'     => 'md5',
        'data_compress' => false,
        'tag_prefix'    => 'tag:',
        'serialize'     => [],
    ],
];
$im     = Pkg6\easyIm\Factory::Tencent($config);

```

案例
--

[](#案例)

### [腾讯IM](https://curl.qcloud.com/OcLpzLhC)

[](#腾讯im)

```
$config = [
  'appId'      => '5978322198',
  'identifier' => 'administrator',
  'secretKey'  => 'nfugb53xtlhyfq2kgiriganruyoagh93it1zwysmh2tmj5tnnmuqhd2og5ofktjt',
];
$im = Pkg6\easyIm\Factory::Tencent($config);
// 自定义请求(账号同步到云端)
$params = [
    'Identifier' => 'easyim',
    'Nick'       => 'easyim',
    'FaceUrl'    => 'https://github.com/Pkg6/easy-im',
];
$im->request->send('im_open_login_svc/account_import', $params);

```

### [环信IM](https://www.easemob.com/)

[](#环信im)

```
$config = [
  'appKey'       => '',
  'clientId'     => '',
  'clientSecret' => '',
  'orgName'      => '',
  'appName'      => '',
];
$im = Pkg6\easyIm\Factory::Huanxin($config);

// 自定义请求(账号同步到云端)
$params = [
    'username' => 'easyim',
    'password' => '123456',
    'nickname' => 'easyim'
];
$im->request->send('post', 'users', $params);

```

### [极光IM](https://www.jiguang.cn/im)

[](#极光im)

```
$config = [
  'appKey'       => '',
  'masterSecret' => '',
];
$im = Pkg6\easyIm\Factory::Jiguang($config);

// 自定义请求(账号同步到云端)
$params = [[
    'username' => 'easyim',
    'password' => '123456',
]];
$im->request->send('post', 'v1/users/', $params);

//IM REST Report V2
//获取消息
$im->request->send('get', 'v2/messages?count=500&begin_time=2015-11-02 10:10:10&end_time=2015-11-02 10:10:12',[],true);

```

### [融云IM](https://www.jiguang.cn/im)

[](#融云im)

```
$config = [
  'appKey'    => '',
  'appSecret' => '',
];
$im = Pkg6\easyIm\Factory::RongCloud($config);

// 自定义请求(账号同步到云端)
$params=[
    'userId' => 'easyim',
    'name'   => 'easyim',
];
$im->request->send('user/getToken.json', $params);

```

### [网易云信IM](https://yunxin.163.com/)

[](#网易云信im)

```
$config = [
  'appKey'    => '',
  'appSecret' => '',
];
$im = Pkg6\easyIm\Factory::Yunxin($config);
// 自定义请求（账号同步到云端）
$params = [
    'accid' => 'easyim',
    'name'  => 'easyim',
];
$im->request->send('nimserver/user/create.action', $params);

```

支持厂商
----

[](#支持厂商)

- [腾讯IM](https://curl.qcloud.com/OcLpzLhC)
- [环信IM](https://www.easemob.com/)
- [极光IM](https://www.jiguang.cn/im)
- [融云IM](https://www.jiguang.cn/im)
- [网易云信IM](https://yunxin.163.com/)

加入我们
----

[](#加入我们)

如果你认可我们的开源项目，有兴趣为 easy-im 的发展做贡献，竭诚欢迎加入我们一起开发完善。无论是 报告错误或 是 Pull Request 开发，那怕是修改一个错别字也是对我们莫大的帮助。

许可协议
----

[](#许可协议)

[MIT](https://opensource.org/licenses/MIT)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

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

Total

3

Last Release

804d ago

PHP version history (2 changes)0.1.0PHP &gt;7.0

0.2.0PHP &gt;7.4

### Community

Maintainers

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

---

Top Contributors

[![chihqiang](https://avatars.githubusercontent.com/u/40115555?v=4)](https://github.com/chihqiang "chihqiang (3 commits)")

---

Tags

imeasy-im

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/whereof-easy-im/health.svg)

```
[![Health](https://phpackages.com/badges/whereof-easy-im/health.svg)](https://phpackages.com/packages/whereof-easy-im)
```

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k20](/packages/civicrm-civicrm-core)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[commercetools/commercetools-sdk

The official PHP SDK for the commercetools Composable Commerce APIs

19281.5k](/packages/commercetools-commercetools-sdk)[bakame/laravel-domain-parser

Laravel package to integrate PHP Domain parser.

26534.8k4](/packages/bakame-laravel-domain-parser)

PHPackages © 2026

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