PHPackages                             dusta/xmpp-prebind-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. [API Development](/categories/api)
4. /
5. dusta/xmpp-prebind-php

ActiveLibrary[API Development](/categories/api)

dusta/xmpp-prebind-php
======================

This class is for prebinding a XMPP Session with PHP.

016PHP

Since Mar 27Pushed 8y ago1 watchersCompare

[ Source](https://github.com/dusta/xmpp-prebind-php)[ Packagist](https://packagist.org/packages/dusta/xmpp-prebind-php)[ RSS](/packages/dusta-xmpp-prebind-php/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

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

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

This class is for [prebinding](http://metajack.im/2009/12/14/fastest-xmpp-sessions-with-http-prebinding/) a XMPP Session with PHP.

Usage
=====

[](#usage)

- Clone the repo
- In your file where you want to do the prebinding:

```
/**
 * Comment here for explanation of the options.
 *
 * Create a new XMPP Object with the required params
 *
 * @param string $jabberHost Jabber Server Host
 * @param string $boshUri    Full URI to the http-bind
 * @param string $resource   Resource identifier
 * @param bool   $useSsl     Use SSL (not working yet, TODO)
 * @param bool   $debug      Enable debug
 */
$xmppPrebind = new XmppPrebind('your-jabber-host.tld', 'http://your-jabber-host/http-bind/', 'Your XMPP Clients resource name', false, false);
$xmppPrebind->connect($username, $password);
$xmppPrebind->auth();
$sessionInfo = $xmppPrebind->getSessionInfo(); // array containing sid, rid and jid
```

- If you use [Candy](http://amiadogroup.github.com/candy), change the `Candy.Core.Connect()` line to the following:

```
Candy.Core.attach('', '', '');
```

- You should now have a working prebinding with PHP

Debugging
=========

[](#debugging)

If something doesn't work, you can enable Debug. Debug output is logged to [FirePHP](http://www.firephp.org/), so you have to install that first.

Other Languages
===============

[](#other-languages)

There exist other projects for other languages to support a prebind. Go googling :)

Be aware
========

[](#be-aware)

This class is in no way feature complete. There may also be bugs. I'd appreciate it if you contribute or submit bug reports.

Thanks.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/954f9b5cd3e021b52a7bb0cabe07b2d7763edf98485fe47cccf835124d79205c?d=identicon)[dusta](/maintainers/dusta)

---

Top Contributors

[![dusta](https://avatars.githubusercontent.com/u/9001348?v=4)](https://github.com/dusta "dusta (7 commits)")[![cobrowserAlex](https://avatars.githubusercontent.com/u/10495775?v=4)](https://github.com/cobrowserAlex "cobrowserAlex (6 commits)")[![mweibel](https://avatars.githubusercontent.com/u/307427?v=4)](https://github.com/mweibel "mweibel (4 commits)")[![Marko-M](https://avatars.githubusercontent.com/u/1738436?v=4)](https://github.com/Marko-M "Marko-M (2 commits)")[![maennchen](https://avatars.githubusercontent.com/u/333918?v=4)](https://github.com/maennchen "maennchen (1 commits)")[![lboynton](https://avatars.githubusercontent.com/u/98873?v=4)](https://github.com/lboynton "lboynton (1 commits)")[![piotr-cz](https://avatars.githubusercontent.com/u/612953?v=4)](https://github.com/piotr-cz "piotr-cz (1 commits)")[![priyadi](https://avatars.githubusercontent.com/u/1102197?v=4)](https://github.com/priyadi "priyadi (1 commits)")

### Embed Badge

![Health badge](/badges/dusta-xmpp-prebind-php/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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