PHPackages                             4lan/dms-php-sdk - 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. 4lan/dms-php-sdk

ActiveLibrary[API Development](/categories/api)

4lan/dms-php-sdk
================

a easy php sdk for aodianyun dms

v1.0.0(11y ago)123BSD-3-ClausePHPPHP &gt;=5.3.0

Since Apr 10Pushed 11y ago1 watchersCompare

[ Source](https://github.com/qhgongzi/dms_php_sdk)[ Packagist](https://packagist.org/packages/4lan/dms-php-sdk)[ RSS](/packages/4lan-dms-php-sdk/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

\##关于dms dms 是杭州奥点科技提供的一个双向消息推送服务，提供了js,php,c++,nodejs,shell，java，python，android,ios之间相互通 信的功能，是市面上唯一支持低版本ie消息推送的服务

\###php sdk php sdk 提供了向dms推送消息的功能，由于常规php一般运行在http模式，只有很短的生存周期，所以只提供了发布功能。

\###使用条件

- php版本&gt;5.3
- 能连通dms服务器(公网)

\###安装

- 使用composer 安装 引入库4lan/dms-php-sdk ，命名空间dms
- 或者直接下载文件,放在调用代码目录下

```
include(".dms_php_sdk/phpMQTT.php");
include(".dms_php_sdk/Pusher.php");
```

\###使用 新建pusher对象，传入dms的publish key 和subscribe key

```
use dms;//at head
$pusher= new Pusher('your pub key','your sub key');
```

推送数据

```
$data=["user"=>"wangdachui","message"=>"can you hear me?"];//这里用了php5.4的语法，如果使用5.3请用array替换。
$pusher->trigger('a_topic',json_encode($data));
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

4103d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0556bc71b79031da955f743f7909d250417e608b593af54f7d4148441e6297d5?d=identicon)[4lan](/maintainers/4lan)

---

Top Contributors

[![slan-ning](https://avatars.githubusercontent.com/u/3199145?v=4)](https://github.com/slan-ning "slan-ning (2 commits)")

### Embed Badge

![Health badge](/badges/4lan-dms-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/4lan-dms-php-sdk/health.svg)](https://phpackages.com/packages/4lan-dms-php-sdk)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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