PHPackages                             deminy/xmpp - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. deminy/xmpp

AbandonedArchivedLibrary[HTTP &amp; Networking](/categories/http)

deminy/xmpp
===========

A client library for talking to XMPP servers.

0.0.2(11y ago)10527↓33.3%7MITPHPPHP &gt;=5.3.3

Since Dec 12Pushed 11y ago4 watchersCompare

[ Source](https://github.com/deminy/xmpp)[ Packagist](https://packagist.org/packages/deminy/xmpp)[ RSS](/packages/deminy-xmpp/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

Summary
=======

[](#summary)

Before creating this repository, I've evaluated following XMPP libraries for PHP:

- [Nikita's fork](https://github.com/nikita2206/Xmpp), which was based on [Alexander's code](https://github.com/alexmace/Xmpp).
- [XMPPHP](https://code.google.com/p/xmpphp). There is a better fork made by [Charles](https://github.com/charlycoste/xmpphp).
- [JAXL](https://github.com/jaxl/JAXL).

Unfortunately, none of above ships with what I need. That's the reason I'm creating this repository based on Nikita's work.

Features
========

[](#features)

- Following features were shipped already from [Nikita's fork](https://github.com/nikita2206/Xmpp):
    - Connects to and authenticates (using DIGEST-MD5) against XMPP servers (tested against Openfire and jabberd2)
    - Supports SSL/TLS connections
    - Allows joining of MUC rooms
    - Sends messages to individuals and MUC rooms.
- Following features are added by me, plus various refactoring, etc:
    - Connects to and authenticates using PLAIN.
    - [XEP-0045](http://xmpp.org/extensions/xep-0045.html) (Multi-User Chat) related implementations, including to create chatroom, destroy chatroom, grant member, revoke member and get member list.

Sample Code
===========

[](#sample-code)

```
use Xmpp\Xep\Xep0045 as xmpp;

$roomId = 'YourHouse';
$userId = 'Tom';

$options = array(
    'username'  => 'your_username',
    'password'  => 'your_password',
    'host'      => 'example.com',
    'ssl'       => false,
    'port'      => 5222,
    'resource'  => uniqid('', true),
    'mucServer' => 'conference.example.com', // optional
);
$xmpp = new xmpp($options, $logger);

$xmpp->createRoom($roomId);            // Create the room.
$xmpp->grantMember($roomId, $userId);  // Add a member to the room.
$xmpp->getMemberList($roomId);         // Get member list and there should be only one member.
$xmpp->revokeMember($roomId, $userId); // Remove the only member out from the room.
$xmpp->getMemberList($roomId);         // Get member list and there should be nobody in the room.
$xmpp->destroyRoom($roomId);           // Destroy the room.
$xmpp->disconnect();                   // Disconnect from the server. Important for heavy-loaded servers.
```

Known Limitations
=================

[](#known-limitations)

- Only part of [XEP-0045](http://xmpp.org/extensions/xep-0045.html) (Multi-User Chat) protocol extension have been implemented.
- Although code was refactored/written following [FIG PSR standards](http://www.php-fig.org), it was developped and tested for certain project under certain environment only.

Credits
=======

[](#credits)

- [Nikita's fork](https://github.com/nikita2206/Xmpp).
- Valuable suggestions, helps on performance improments and tests from colleague Jose (known to all as Tachu), Jakub and Jerry.

License
=======

[](#license)

MIT license.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.8% 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 ~4 days

Total

2

Last Release

4170d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/865547?v=4)[Demin Yin](/maintainers/deminy)[@deminy](https://github.com/deminy)

---

Top Contributors

[![deminy](https://avatars.githubusercontent.com/u/865547?v=4)](https://github.com/deminy "deminy (80 commits)")[![hanicker](https://avatars.githubusercontent.com/u/510258?v=4)](https://github.com/hanicker "hanicker (1 commits)")

---

Tags

phpimxmppjabber

### Embed Badge

![Health badge](/badges/deminy-xmpp/health.svg)

```
[![Health](https://phpackages.com/badges/deminy-xmpp/health.svg)](https://phpackages.com/packages/deminy-xmpp)
```

###  Alternatives

[bitrix24/b24phpsdk

An official PHP library for the Bitrix24 REST API

9230.2k4](/packages/bitrix24-b24phpsdk)[zorn-v/xmpp

Library for XMPP protocol (Jabber) connections

118.5k](/packages/zorn-v-xmpp)

PHPackages © 2026

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