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

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

stanx/fabiang-xmpp
==================

Library for XMPP protocol (Jabber) connections

0.8.1(4y ago)04611BSD-2-ClausePHPPHP ^7.0 || ^8.0

Since Jan 23Pushed 4y agoCompare

[ Source](https://github.com/stanxdev/fabiang-xmpp)[ Packagist](https://packagist.org/packages/stanx/fabiang-xmpp)[ Docs](https://github.com/stanxdev/fabiang-xmpp)[ RSS](/packages/stanx-fabiang-xmpp/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (8)Versions (11)Used By (1)

stanx/fabiang-xmpp
==================

[](#stanxfabiang-xmpp)

Library for XMPP protocol connections (Jabber) for PHP.

Forked from  (forked from )

SYSTEM REQUIREMENTS
-------------------

[](#system-requirements)

- PHP &gt;= 7.0
- psr/log
- (optional) psr/log-implementation - like monolog/monolog for logging

INSTALLATION
------------

[](#installation)

New to Composer? Read the [introduction](https://getcomposer.org/doc/00-intro.md#introduction). Add the following to your composer file:

```
composer require stanx/fabiang-xmpp
```

DOCUMENTATION
-------------

[](#documentation)

This library uses an object to hold options:

```
use Fabiang\Xmpp\Options;
$options = new Options($address);
$options->setUsername($username)
        ->setPassword($password)
        ->setTimeout(10);
```

The server address must be in the format `tcp://myjabber.com:5222`.
If the server supports TLS the connection will automatically be encrypted.

You can also pass a PSR-2-compatible object to the options object:

```
$options->setLogger($logger)
```

The client manages the connection to the Jabber server and requires the options object:

```
use Fabiang\Xmpp\Client;
$client = new Client($options);
// optional connect manually
$client->connect();
```

For sending data you just need to pass a object that implements `Fabiang\Xmpp\Protocol\ProtocolImplementationInterface`:

```
use Fabiang\Xmpp\Protocol\Roster;
use Fabiang\Xmpp\Protocol\Presence;
use Fabiang\Xmpp\Protocol\Message;

// fetch roster list; users and their groups
$client->send(new Roster);
// set status to online
$client->send(new Presence);

// send a message to another user
$message = new Message;
$message->setMessage('test')
        ->setTo('nickname@myjabber.com');
$client->send($message);

// join a channel
$channel = new Presence;
$channel->setTo('channelname@conference.myjabber.com')
        ->setPassword('channelpassword')
        ->setNickName('mynick');
$client->send($channel);

// send a message to the above channel
$message = new Message;
$message->setMessage('test')
        ->setTo('channelname@conference.myjabber.com')
        ->setType(Message::TYPE_GROUPCHAT);
$client->send($message);
```

After all you should disconnect:

```
$client->disconnect();
```

BSD-2-Clause. See the [LICENSE](LICENSE.md).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 90.5% 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 ~314 days

Recently: every ~634 days

Total

10

Last Release

1659d ago

PHP version history (4 changes)0.1.0PHP &gt;=5.3

0.5.0PHP &gt;=5.3.3

0.7.0PHP ^5.6 || ^7.0

0.8.0PHP ^7.0 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/2aa57a325f2a95418c4bcceb3c7472cc2fb4ab27251bcf96fcbbea61e245bdcb?d=identicon)[stanx](/maintainers/stanx)

---

Top Contributors

[![fabiang](https://avatars.githubusercontent.com/u/348344?v=4)](https://github.com/fabiang "fabiang (153 commits)")[![stanxdev](https://avatars.githubusercontent.com/u/25463478?v=4)](https://github.com/stanxdev "stanxdev (5 commits)")[![n10ty](https://avatars.githubusercontent.com/u/2970001?v=4)](https://github.com/n10ty "n10ty (2 commits)")[![tohenk](https://avatars.githubusercontent.com/u/350747?v=4)](https://github.com/tohenk "tohenk (2 commits)")[![alexalouit](https://avatars.githubusercontent.com/u/1419377?v=4)](https://github.com/alexalouit "alexalouit (1 commits)")[![marclaporte](https://avatars.githubusercontent.com/u/1004261?v=4)](https://github.com/marclaporte "marclaporte (1 commits)")[![pirxthepilot](https://avatars.githubusercontent.com/u/7690118?v=4)](https://github.com/pirxthepilot "pirxthepilot (1 commits)")[![iivannov](https://avatars.githubusercontent.com/u/7932620?v=4)](https://github.com/iivannov "iivannov (1 commits)")[![antonkomarev](https://avatars.githubusercontent.com/u/1849174?v=4)](https://github.com/antonkomarev "antonkomarev (1 commits)")[![frederikbosch](https://avatars.githubusercontent.com/u/1552577?v=4)](https://github.com/frederikbosch "frederikbosch (1 commits)")[![Ghitu](https://avatars.githubusercontent.com/u/7511010?v=4)](https://github.com/Ghitu "Ghitu (1 commits)")

---

Tags

xmppjabber

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[api-platform/metadata

API Resource-oriented metadata attributes and factories

223.5M96](/packages/api-platform-metadata)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[zorn-v/xmpp

Library for XMPP protocol (Jabber) connections

118.5k](/packages/zorn-v-xmpp)[mimmi20/browser-detector

Library to detect Browsers and Devices

48153.5k3](/packages/mimmi20-browser-detector)[discord-php/http

Handles HTTP requests to Discord servers

25318.7k8](/packages/discord-php-http)

PHPackages © 2026

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