承接 haydenwu/xmpp 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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 body being empty when message is a reply. Now the body will be similar to "> FOO\nBAR" when so.
  • Added type field which will be either 'chat' (Message::TYPE_CHAT) or 'groupchat' (Message::TYPE_GROUPCHAT).
  • Added boolean meta field which will be true when 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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-2-Clause
  • 更新时间: 2025-08-11