XMPPHP is an elegant PHP library for XMPP (aka Jabber, Google Talk, Facebook etc).