PHPackages                             catapush/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. catapush/xmpp

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

catapush/xmpp
=============

A client library for talking to XMPP servers.

v1.2(1y ago)11.8kMITPHPPHP &gt;=5.3.3

Since Aug 9Pushed 1y agoCompare

[ Source](https://github.com/Catapush/xmpp)[ Packagist](https://packagist.org/packages/catapush/xmpp)[ RSS](/packages/catapush-xmpp/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (2)Versions (4)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;

$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',
);
$xmpp = new Xep0045($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

31

—

LowBetter than 68% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

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

Total

3

Last Release

623d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7733527fe6f632f8b2692d637059f52efb41545a2f7774d8ff128642071fa9af?d=identicon)[catapush-team](/maintainers/catapush-team)

![](https://www.gravatar.com/avatar/20843c4baf7e38e2094aa7791a2c1628ef46565fae1aad7cbffe39ed25c73644?d=identicon)[davidemarrone](/maintainers/davidemarrone)

---

Tags

phpimxmppjabber

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/catapush-xmpp/health.svg)](https://phpackages.com/packages/catapush-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)
