PHPackages                             pbxapi/xmpp-php - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. pbxapi/xmpp-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

pbxapi/xmpp-php
===============

0.0.5(5y ago)0311[1 issues](https://github.com/pbxapi/xmpp-php/issues)PHP

Since Feb 17Pushed 5y agoCompare

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

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

XMPP Prebind for PHP backend
============================

[](#xmpp-prebind-for-php-backend)

This class is designed for PHP backend to prebind a XMPP Session with XMPP servers like Openfire (tested), eJabberd etc.

In other words if you want to use frontend XMPP client like [ConverseJS](https://conversejs.org/) and take advantage of [persistent login](https://conversejs.org/docs/html/setup.html#prebind) (aka [Single Session Support](https://conversejs.org/docs/html/setup.html#session-support)) with PHP then you're in right place.

How to use?
===========

[](#how-to-use)

Clone this repository and require (or use namespace as I did) where you want to do the prebinding. Let's say our Jabber ID (JID) is . Use like below:

```
