<?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, 22 May 2012 13:23:11 -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: Listening to Dbus signals with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/17301</guid>
      <link>http://www.phpdeveloper.org/news/17301</link>
      <description><![CDATA[<p>
<i>Robert Basic</i> has posted a follow up to his <a href="http://robertbasic.com/blog/communicating-with-pidgin-from-php-via-d-bus/">first post</a> about using DBase in PHP in <a href="http://robertbasic.com/blog/listening-to-dbus-signals-with-php/">this new post</a>. This new tutorial shows you how to listen to signals sent to the waiting PHP script.
</p>
<blockquote>
The good part is that not can we only call different methods against Pidgin's libpurple API, we can also listen to different signals on different events, that are sent via Dbus. [...] The PHP Dbus extension allows us to watch for one exact signal on an interface, or for all signals on an interface. Of course, we can add watches on multiple interfaces at once.
</blockquote>
<p>
In his example he shows how to set a listener on the session to watch for an incoming instant message from another source. Sample code is included showing how to set the listener on the interface and be able to tell when a message comes in (watching a $signal interface for an event). You can find more signal catching examples in <a href="https://github.com/robertbasic/blog-examples/tree/master/dbus">his github repository</a>.
</p>]]></description>
      <pubDate>Mon, 26 Dec 2011 11:23:41 -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>
    <item>
      <title><![CDATA[Derick Rethans' Blog: First release of the D-Bus extension]]></title>
      <guid>http://www.phpdeveloper.org/news/14306</guid>
      <link>http://www.phpdeveloper.org/news/14306</link>
      <description><![CDATA[<p>
<i>Derick Rethans</i> has announced the first official release <a href="http://derickrethans.nl/dbus-extension-released.html">of his D-Bus extension</a> that makes it possible for PHP applications (and ones built in other languages) to interact directly with each other.
</p>
<blockquote>
A few days ago I made the first beta release of the D-Bus extension that I have been working on for a while. D-Bus is a message bus system, a simple way for applications to talk to one another. I started working on this because my cellphone. [...] However, many other applications on the Linux desktop speak D-Bus. This includes system services such as the notification daemon, the screen saver and hardware plug-in detection as well as desktop applications such as <a href="http://www.pidgin.im/">Pidgin</a> and <a href="http://live.gnome.org/Empathya">Empathy</a>.
</blockquote>
<p>
You can find out more about the extension on <a href="http://pecl.php.net/package/dbus">its PECL page</a> or check out <i>Derick</i>'s <a href="http://derickrethans.nl/talks/dbus-london2010.pdf">presentation</a> on the subject (as presented at the 2010 PHP London conference).
</p>]]></description>
      <pubDate>Tue, 06 Apr 2010 12:16:16 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Manuel Pichler's Blog: PHP_Depend jumps on the D-BUS]]></title>
      <guid>http://www.phpdeveloper.org/news/13565</guid>
      <link>http://www.phpdeveloper.org/news/13565</link>
      <description><![CDATA[<p>
<i>Manuel Pichler</i> has <a href="http://manuel-pichler.de/archives/66-PHP_Depend-jumps-on-the-D-BUS.html">a new post</a> today about a feature he's added into the <a href="http://pdepend.org/news.html">PHP_Depend</a> application that tracks the dependencies in your code - a bit of <a href="http://pecl.php.net/package/DBus">DBus</a> magic.
</p>
<blockquote>
Sometimes the parsing and analysis process of PHP_Depend can consume a lot of time to finish, so I always put the shell aside and do something different. Normally I take a look at the shell every few minutes to check if the process has finished, but it also happens that I totally forget that I have started a PHP_Depend process on my system. So I need something that says to me, <i>"Hey, mapi PHP_Depend has finished its job..."</i>, and here comes D-BUS in the game. 
</blockquote>
<p>
With the help of the <a href="http://pecl.php.net/package/DBus">DBus</a> extension, he made a way to have the PHP_Depend process send a message (in his case one similar to a Growl popup) when the dependency checking is done. You'll need the <a href="http://svn.pdepend.org/branches/0.9.0/">0.9.0 branch</a> to get the "notify-me" command line option to make it all work.
</p>]]></description>
      <pubDate>Thu, 19 Nov 2009 12:46:17 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Daniel Cousineau's Blog: PHP, Mumbles (Growl), and DBus: Sweeet]]></title>
      <guid>http://www.phpdeveloper.org/news/11946</guid>
      <link>http://www.phpdeveloper.org/news/11946</link>
      <description><![CDATA[<p>
<i>Daniel Cousineau</i> has <a href="http://www.toosweettobesour.com/2009/02/13/php-mumbles-growl-and-dbus-sweeet/">a new post</a> today that looks at his process for getting a Growl-like messaging system up and running in Ubuntu by combining <a href="http://www.mumbles-project.org/">Mumbles</a> and PHP (via a DBus API).
</p>
<blockquote>
I decided the best easiest route is to access the internal DBus API, however the forums and other resources on the Mumbles site'¦ well... just plain suck. And by suck I mean tell you that something exists and'¦ thaaats about it.
</blockquote>
<p>
What he did find, thanks to <a href="http://google.com">Google</a>, was a tool called <a href="https://fedorahosted.org/d-feet/">D-Feet</a> to help with debugging and a <a href="http://labs.gree.jp/Top/OpenSource/DBus-en.html">DBus extension</a> for PHP that could add the needed support into his PHP installation. Following a bit of hacking and lots of testing, he was <a href="http://www.toosweettobesour.com/wp-content/uploads/2009/02/mumbles-php.png">mostly successful</a>. The only side effect is an Exception where the extension cannot correctly catch the Notify signal.
</p>]]></description>
      <pubDate>Fri, 13 Feb 2009 10:26:33 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[ThinkPHP Blog: Mayflower Barcamp: Developing a PHP extension for Skype]]></title>
      <guid>http://www.phpdeveloper.org/news/9806</guid>
      <link>http://www.phpdeveloper.org/news/9806</link>
      <description><![CDATA[<p>
On the ThinkPHP blog today, <i>Andreas Uhsemann</i> has <a href="http://blog.thinkphp.de/archives/309-Mayflower-Barcamp-Developing-a-PHP-extension-for-Skype.html">posted about</a> a project that he and fellow Mayflower Barcampers came up with that they thought could be useful (and interesting) to work on - a PHP extension to interface with the Skype communication tool.
</p>
<blockquote>
At the Mayflower Barcamp a few weeks ago we had a very interesting and promising project: Develop a PHP extension for communication with Skype. Actually this project was a merge between two projects: One was to "develop a PHP extension" - five out of six project members never had written any PHP extension or did any PHP core development before. The other project was the Skype extension, with the goal to have a new PHP function that could send a chat message to a given Skype profile.
</blockquote>
<p>
As they worked on it, they realized that it was really D-Bus (the <a href="http://www.freedesktop.org/wiki/Software/dbus">message bus system</a>) they needed to interface with, not Skype directly. They include some of the code they used to make the connection - creating the message, setting a few parameters and "send and block" the message out to the D-Bus connection waiting. They've even put the code up on a public CVS repository (on thinkforge.org) if you'd like to download and play with it yourself.
</p>]]></description>
      <pubDate>Mon, 17 Mar 2008 10:24:29 -0500</pubDate>
    </item>
  </channel>
</rss>

