Jabber Simple - A PHP Library

Over the weekend I cleaned up, documented, and released a library extension that I used for TwitterSync. I call the library Jabber Simple. It's an extension to the amazing PHP Jabber code by Centova Technologies Inc. (http://www.centova.com).

Jabber Simple offers just a few improvements:

  • Automatically connecting and authenticating to the Jabber server of your choice
  • Automatically discovering the event handler methods
  • The potential for cleaner shorter code

I built the TwitterSync Jabber Bot (at first) based on the example Jabber Bot code for the Jabber class, but I felt like there must be an easier way to write a simple Jabber Bot…

So I wrote Jabber Simple in order to make creating a simple Jabber bot with the Jabber class a bit easier. IMHO, the example Jabber Bot via JabberSimple seems a bit easier to read, understand, and extend.

Well, that's it. I don't have much more to say. I'm happy with my library and if nobody else finds it useful, that's ok1!

You can find the JabberSimple library at Google Code


  1. I do hope someone else might find it useful []

Trackback URL for this post:

http://www.thenullpointer.net/trackback/143

Hey - this looks cool and I'm going to give it a shot.
I saw an entry here regarding slicehost - I was wondering which Jabber server you installed on slicehost and if you had any tips.
Cheers,
Ben

Ben,

Thanks for the comment. JabberSimple is a very thin layer over an amazing Jabber class. Hope it works out for you. I know it works very well for TwitterSync.

The Jabber server I use is ejabberd. The reasons I’m using it over jabberd are:

  • Web-based UI
  • Painless Setup (I had a hell of a time getting jabberd started)
  • Offline Messaging Support (I don’t know if jabberd has this — but it works out great should my JabberBot crash temporarily… once it signs on, all the missed messages stream in)
[...] Tech news blog - CNET News.com wrote an interesting post today on Jabber Simple - A PHP Library | The Null PointerHere’s a quick excerpt bookmark this on del.icio.us - posted by lattice to php xmpp library devel and saved by  others… [...]

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.