tags:

views:

866

answers:

2

Hello,

I am wondering how to integrate jabber instead of using my AJAX polling script. I chanced upon the following: http://code.google.com/p/xmpphp/

It gives me access to a jabber server, but does not tell me how to exactly go about it. I mean for example

$payloads = $conn->processUntil(array('message', 'presence', 'end_stream', 'session_start'));

Are there a fixed set of commands that I can use? Is there some site which explains the jabber workflow in very simple terms?

Thank you very much for your time.

+1  A: 

These two doc pages seem to be fairly readable:

  1. Core
  2. Instant Messaging and Presence


Also, you might already be heavily invested into xmpphp, but if not, you may want to take a look at Phurple. It gives you access to the libpurple library (the code-base for Pidgin) from PHP.

From the project page:

This libpurple PHP binding, which defines a set of internal classes, gives a possibility to use aol and icq (oscar), yahoo, msn, jabber, irc and much more protocols directly from PHP. Write your own IM chat client in PHP, as simply as PHP enables it.

Andrew
+2  A: 

I've been wondering about technologies to play around with XMPP, been looking at:

Examples of this technology can be seen at:

Andrioid