PHPackages                             linshunwei/danhar-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. [API Development](/categories/api)
4. /
5. linshunwei/danhar-im

ActiveLibrary[API Development](/categories/api)

linshunwei/danhar-im
====================

东合 im 服务端接口文档

2.1.0(6y ago)033MITPHP

Since Apr 28Pushed 6y ago1 watchersCompare

[ Source](https://github.com/linshunwei/danhar-im)[ Packagist](https://packagist.org/packages/linshunwei/danhar-im)[ RSS](/packages/linshunwei-danhar-im/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (1)Versions (9)Used By (0)

东合IM服务端接口
=========

[](#东合im服务端接口)

安装
--

[](#安装)

使用 composer

```
composer require linshunwei/danhar-im
```

在配置文件中添加服务提供者（Laravel5.5 有自动添加）

```
'providers' => [
    //...
    Linshunwei\DanharIm\DanharImServiceProvider::class,
    //...
],
```

复制配置文件到配置目录，配置文件内容不多，而且可以在 `.env` 文件中设置。手动复制或者使用命令复制：

```
php artisan vendor:publish --provider="Linshunwei\DanharIm\DanharImServiceProvider"
```

修改配置文件 `config/danhar-im.php`

```
    'host' => env('DANHAR_IM_HOST', '127.0.0.1'),
    'app_id' => env('DANHAR_IM_APP_ID', ''),
    'app_secret' => env('DANHAR_IM_APP_SECRET', ''),
```

或者直接在 `.env` 文件中设置需要修改的内容，没有特殊情况默认即可

```
DANHAR_IM_HOST=127.0.0.1
DANHAR_IM_APP_ID=xxxx
DANHAR_IM_APP_SECRET=xxx

```

代码调用 消息列表+

```
use Linshunwei\DanharIm\DanharIm;

    $im = new DanharIm();
    $res = $im->msgList();
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

Total

8

Last Release

2550d ago

Major Versions

1.1.1 → 2.1.02019-05-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/3fe2545ef1e7a6237d40d28020530c2f32f22a7f35993bc55e2a1baa2ab983ae?d=identicon)[linshunwei](/maintainers/linshunwei)

### Embed Badge

![Health badge](/badges/linshunwei-danhar-im/health.svg)

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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