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 GitHub Code


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

Hey - this looks cool and

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

mannkind's picture

Ben, Thanks for the

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)

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post PHP code. You should include <?php ?> tags.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.