XMPP

Jaxl 2.0 Core classes, available methods and directory structure

Posted on

In this blog post we will dig deep into the core of Jaxl 2.0 – An XMPP framework written in PHP. Specifically, we will go through Jaxl core directory structure. Towards the end we will get familiar with various core classes and their available methods (e.g. $jaxl->sendMessage()), that developers can use in their XMPP applications. Core Directory Structure Now that you have the source code, lets get familiar with the Jaxl directory structure. Downloaded source code consists of following 5 directories: xmpp: Contain core stack which implements XMPP rfc’s. All files follow naming convention like xmpp.*.php core: Contains core stack […]

XMPP

Writing a command line XMPP bot (echobot) using Jaxl 2.0

Posted on

In this blog post, we will write a sample XMPP bot (echobot) using Jaxl 2.0. In turn we will introduce ourselves to some of the basic functionality we can do using Jaxl e.g. fetching roster list, subscribing and unsubscribing to a user presence, etc. We will also focus on how to use XMPP extensions (XEP’s) inside our echobot code. Specifically, we will make use of XEP-0085 (chat state notification), XEP-0203 (delayed delivery) and XEP-0092 (software version) in our sample echobot application. Echobot source code: This sample echobot application comes packaged with Jaxl 2.0. If you have already read Installation, Usage […]

XMPP

Jaxl 2.0 – Installation, Usage guide and Example apps

Posted on

This blog post provides detailed instructions on how to download and setup Jaxl 2.0 for quick XMPP application development using PHP. We will also see how to run XMPP bots using Jaxl command line utility (now available by just typing jaxl on the terminal). Get the source code Jaxl 2.0 development version source code is available at github. 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. If you are not familar with Git just use the download button to get […]

Open Source

Releasing Jaxl 2.0 – Object oriented XMPP framework in PHP

Posted on

After months of restructuring the Jaxl library, I am pleased to announce Jaxl 2.0, an object oriented XMPP framework in PHP for developing real time applications for browsers, desktops and hand held devices. What’s new in Jaxl 2.0? A lot of structural changes has been done from the previous version to make it more scalable, robust, flexible and easy to use Library now provides an event mechanism, allowing developers to register callbacks for various xmpp events in their application code Use integrated BOSH support to write real time web applications in minutes More than 10 new implemented XMPP extensions (XEP’s) […]

WordPress

Introducing WP-Chat :: XMPP Chat plugin for WordPress

Posted on

WP-Chat plugin embeds Jaxl IM (Instant Messenger for the web) for wordpress blogs. It runs across all major browsers and built upon XMPP protocol. It is a hosted solution from Jaxl.im empowering real time communication between you and your site visitors. It expects no software or hardware pre-requisites from your site servers or users. Above all it’s free! Overview: Supports for all major browser including Firefox, Chrome, Safari and IE Embeddable on all blogs, forums, personal, social and enterprise sites Built using XMPP protocol (backbone for facebook and google chats) Hosted dashboard for site admins and IM users Pluggable and […]

XMPP

Setting up ejabberd 2.1.x development environment on Ubuntu

Posted on

apt-get provide a convenient way of installing ejabberd on Ubuntu distributions. However, if you are an erlang developer and looking to write custom ejabberd modules, you might want to install ejabberd from the source code. Checkout ejabberd source To start with lets grab the ejabberd 2.1.x branch source code: sudo apt-get install git-core git clone git://git.process-one.net/ejabberd/mainline.git ejabberd cd ejabberd git checkout -b 2.1.x origin/2.1.x cd src Installing pre-requisites Lets setup necessary pre-requisites before compiling ejabberd source code: sudo apt-get install build-essential sudo apt-get install automake autoconf sudo apt-get install erlang erlang-manpages sudo apt-get install libexpat1-dev zlib1g-dev libssl-dev Compiling ejabberd source […]

XMPP

Writing your first facebook chat bot in PHP using Jaxl library

Posted on

Today facebook officially announced availability of it’s chat through jabber/xmpp clients. This is a big win for XMPP, with almost 400 million new probable users adding into XMPP club. In this post, I will demonstrate how to connect to facebook chat servers using Jaxl client library in PHP. It can further be used to make custom chat bots for facebook. Creating your first facebook chat bot: Follow the steps to successfully run a facebook chat bot: Download Jaxl or checkout latest from trunk svn checkout http://jaxl.googlecode.com/svn/trunk/ jaxl-read-only Edit the configuration file config.ini.php as follows: // Set an enviornment $env = […]

WordPress

JAXL BOSH Demo: IM chat client for all WordPress blogs

Posted on

Have you ever wished of a wordpress plugin capable of providing a facebook style chat bar on your blog post. In this blog post, I will lay down the details of how Jaxl‘s bosh support comes in handy for building such browser based real time application. Specifically, I will explain how I achieved building a plugin for my wordpress blog. If everything goes perfect over next few weeks, this plugin might be submitted in wordpress plugin’s directory. Jaxl BOSH Support Framework Jaxl BOSH support comprise of three main parts: jaxl.jquery.js: JQuery extension written for Jaxl bosh support jaxl4bosh.class.php: Connection manager […]

XMPP

Get real time system & server load notification on any IM using PHP and XMPP

Posted on

There are various system and server related information which server administrators always need to have as soon as possible, infact I must say in real time. There are several open and closed source softwares in the market which can generate almost real time notifications for you. Most famous one being Nagios. In this blog post I will discuss, how to generate real time system notifications using PHP and XMPP. Specifically, I will present sample script using Jaxl (Jabber XMPP Client Library) for generating real time system load notifications, which can be received using any Instant Messengers. /proc/loadavg We will be […]

XMPP

Get lyrics for any song using XMPP and PHP right into your IM – Add [email protected]

Posted on

XMPP is soon finding it’s way into real time applications other than just chat. I have combined JAXL (Jabber XMPP client library written in PHP) and the API from lyricsfly.com to build a real time chat bot which can assist you with lyrics for any song. You can start using it by simply adding [email protected] to your IM account (e.g. Gtalk, Jabber etc). In this blog post, I will explain in brief the working of lyricsfly bot and how you can integrate XMPP into your own application. Try out [email protected] Follow the following steps to get the bot working for […]