<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Tue, 21 May 2013 13:14:49 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Robert Basic's Blog: Creating a chat bot with PHP and Dbus]]></title>
      <guid>http://www.phpdeveloper.org/news/17364</guid>
      <link>http://www.phpdeveloper.org/news/17364</link>
      <description><![CDATA[<p>
<i>Robert Basic</i> has continued his series looking at using Dbus in PHP with <a href="http://robertbasic.com/blog/creating-a-chat-bot-with-php-and-dbus/">this latest post</a> to his blog - using the foundation he's <a href="http://robertbasic.com/blog/communicating-with-pidgin-from-php-via-d-bus/">created</a> <a href="http://robertbasic.com/blog/listening-to-dbus-signals-with-php/">before</a> to make a chat bot that will listen and respond to commands on a Jabber network.
</p>
<blockquote>
Now that we know how to <a href="http://robertbasic.com/blog/communicating-with-pidgin-from-php-via-d-bus/">use DBus to communicate with Pidgin from PHP</a> and how to <a href="http://robertbasic.com/blog/listening-to-dbus-signals-with-php/">listen to DBus signals</a>, it's time to put it all together by creating a simple chat bot! Nothing fancy, just a simple script that runs somewhere on some server and, by using a Pidgin account, can respond to some basic queries we send it.
</blockquote>
<p>
His new code listens for an incoming message on the "PurpleInterface", grabs the name of the sender and calls a "PurpleConvImSend" method with the conversation object and the message to send. You can find the complete source for the project <a href="https://github.com/robertbasic/blog-examples/blob/master/dbus/chat.php">on his github account</a>.
</p>]]></description>
      <pubDate>Mon, 09 Jan 2012 11:10:52 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Robert Basic's Blog: Communicating with Pidgin from PHP via D-Bus]]></title>
      <guid>http://www.phpdeveloper.org/news/17275</guid>
      <link>http://www.phpdeveloper.org/news/17275</link>
      <description><![CDATA[<p>
<i>Robert Basic</i> has put together a new tutorial on his blog showing how he <a href="http://robertbasic.com/blog/communicating-with-pidgin-from-php-via-d-bus/">connected PHP and Pidgin</a> (the popular chat client) with the help of the <a href="http://pecl.php.net/package/DBus">DBus extension</a>.
</p>
<blockquote>
Earlier this week I got an idea of trying to communicate with <a href="http://pidgin.im/">Pidgin</a>, a chat client, via the terminal. [...] Surely I wasn't the first one to come up with this idea and after a bit of a googling found out that Pidgin's libpurple has a nice API for that, <a href="http://developer.pidgin.im/wiki/DbusHowto">exposed via D-Bus</a>. I first planned to write some scripts for this in Python or C, but when I finally sat down over the weekend to hack on this, realized there is a <a href="http://pecl.php.net/package/DBus">PHP D-Bus extension</a>, thanks to <a href="http://derickrethans.nl/">Derick Rethans</a>! 
</blockquote>
<p>
He goes through the whole process you'll need to get it up and working on your system - installing the extension via PECL, creating a DBus proxy to the Pigdin interface and getting a list of the currently connected users. You can find the first versions of this code <a href="https://github.com/robertbasic/blog-examples/tree/master/dbus">in his account on github</a>.
</p>]]></description>
      <pubDate>Mon, 19 Dec 2011 09:10:23 -0600</pubDate>
    </item>
  </channel>
</rss>
