2017 © Pedro Peláez

library jaxl

Jaxl - Async, Non-Blocking, Event based Networking Library in PHP.



Jaxl - Async, Non-Blocking, Event based Networking Library in PHP.

  • Monday, January 20, 2014
  • by mseshachalam
  • Repository
  • 0 Watchers
  • 0 Stars
  • 121 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown


JAXL (Jabber XMPP Client and Component Library in PHP)

Jaxl v3.x is out. It's fast, modular, clean, flexible, oops, event based. Read More, (*1)

Jaxl 2.x is an object oriented XMPP framework in PHP for developing real time applications for browsers, desktops and hand held devices. Jaxl 2.x is a robust, flexible and easy to use version of Jaxl 1.x series which was hosted at google code., (*2)

  • More robust, flexible, scalable and easy to use with event mechanism for registering callbacks for xmpp events
  • Integrated support for Real Time Web (XMPP over Bosh) application development
  • Support for DIGEST-MD5, PLAIN, ANONYMOUS, X-FACEBOOK-PLATFORM authentication mechanisms
  • 51 implemented XMPP extensions (XEP's) including MUC, PubSub, PEP, Jingle, File Transfer
  • Setup dynamic number of parallel XMPP instance on the fly
  • Monitoring, usage stat collection, rate limiting and production ready goodies


  • For better experience download latest stable tarball from google code
  • The development version of Jaxl is hosted here at Github, have fun cloning the source code with Git

Warning: The development source code at Github is only intended for people that want to develop Jaxl or absolutely need the latest features still not available on the stable releases., (*3)

Writing XMPP apps using JAXL library

  • Download and extract inside /path/to/jaxl
  • Jaxl library provide an event based mechanism exposing hooks like jaxl_post_auth
  • Register callback(s) inside your app code for required events (see example below)
  • Write your app logic inside callback'd methods

Here is how a simple send chat message app looks like using Jaxl library:, (*4)

// Include and initialize Jaxl core
require_once '/path/to/jaxl/core/jaxl.class.php';
$jaxl = new JAXL(array(

// Send message after successful authentication
function postAuth($payload, $jaxl) {
    global $argv;
    $jaxl->sendMessage($argv[1], $argv[2]);

// Register callback on required hook (callback'd method will always receive 2 params)
$jaxl->addPlugin('jaxl_post_auth', 'postAuth');

// Start Jaxl core

Run from command line:, (*5)

php sendMessage.php "anotherUser@gmail.com" "This is a test message"

Generate Jaxl documentation on your system for quick reference:, (*6)

phpdoc -o HTML:Smarty:PHP -ti "JAXL Documentation" -t /var/www/ -d xmpp/,xep/,env/,core/

The Versions

20/01 2014


3.9999999.9999999.9999999-dev http://jaxl.readthedocs.org/en/latest/index.html

Jaxl - Async, Non-Blocking, Event based Networking Library in PHP.

  Sources   Download


The Requires

  • php >=5.2.4


php http asynchronous xmpp jabber jaxl abhinavsingh non blocking event loop

15/11 2012

v3.0.0 http://jaxl.readthedocs.org/en/latest/index.html

jaxl - Jabber XMPP Client Library in PHP.

  Sources   Download


The Requires

  • php >=5.2.4


xmpp jabber jaxl abhinavsingh