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

Abandoned → [candy-chat/xmpp-prebind-php](/?search=candy-chat%2Fxmpp-prebind-php)ArchivedLibrary[HTTP &amp; Networking](/categories/http)

piotr-cz/xmpp-prebind-php
=========================

This class is for prebinding a XMPP Session with PHP.

631.1k42[5 issues](https://github.com/candy-chat/xmpp-prebind-php/issues)[5 PRs](https://github.com/candy-chat/xmpp-prebind-php/pulls)PHP

Since Feb 26Pushed 4y ago14 watchersCompare

[ Source](https://github.com/candy-chat/xmpp-prebind-php)[ Packagist](https://packagist.org/packages/piotr-cz/xmpp-prebind-php)[ RSS](/packages/piotr-cz-xmpp-prebind-php/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (2)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

30

—

LowBetter than 64% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community24

Small or concentrated contributor base

Maturity43

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/86d0c1f149ea4d2e249b6a4b708ac47e49ea977924690b477a1fefc1b7d16b7b?d=identicon)[Elexy](/maintainers/Elexy)

![](https://www.gravatar.com/avatar/04531027d1592929b57822d700d43ea8343edc1f2e0d5e298985491193eaa1fa?d=identicon)[piotr-cz](/maintainers/piotr-cz)

---

Top Contributors

[![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/piotr-cz-xmpp-prebind-php/health.svg)

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

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M316](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M292](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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