haydenwu/xmpp
Composer 安装命令:
composer require haydenwu/xmpp
包简介
Library for XMPP protocol (Jabber) connections
README 文档
README
This is my fork of zorn-v/xmpp, which is a fork of fabiang/xmpp, a PHP library for XMPP protocol connections (Jabber).
The original README can be found in README.OLD.md.
Changes in this fork
Explicit MUC presence
A Presence stanza must be sent to a MUC before the client can chat in it. Previously, you must call setPassword(string) to imply the Presence's to is a MUC, no matter there's a password or not. Now you'll do that explicitly with setToChannel(bool).
Max history returned by room
$presence->setHistoryLimit(int|null) allows you to set maximum number of previous messages provided when joining a room room. When it's null, it'll follow the room's default.
Getting messages
A few updates on message buffer and $client->getMessages()'s return:
- Fixed
bodybeing empty when message is a reply. Now the body will be similar to"> FOO\nBAR"when so. - Added
typefield which will be either'chat'(Message::TYPE_CHAT) or'groupchat'(Message::TYPE_GROUPCHAT). - Added boolean
metafield which will betruewhen the message is not an actual chat message, e.g. when it notifies room subject or description.
LICENSE
BSD-2-Clause. See the LICENSE.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: BSD-2-Clause
- 更新时间: 2025-08-11