 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Robert Basic's Blog: Listening to Dbus signals with PHP
by Chris Cornutt December 26, 2011 @ 11:23:41
Robert Basic has posted a follow up to his first post about using DBase in PHP in this new post. This new tutorial shows you how to listen to signals sent to the waiting PHP script.
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.
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 his github repository.
voice your opinion now!
dbus signal listen tutorial extension
Derick Rethans' Blog: First release of the D-Bus extension
by Chris Cornutt April 06, 2010 @ 12:16:16
Derick Rethans has announced the first official release of his D-Bus extension that makes it possible for PHP applications (and ones built in other languages) to interact directly with each other.
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 Pidgin and Empathy.
You can find out more about the extension on its PECL page or check out Derick's presentation on the subject (as presented at the 2010 PHP London conference).
voice your opinion now!
release dbus extension communication
Manuel Pichler's Blog: PHP_Depend jumps on the D-BUS
by Chris Cornutt November 19, 2009 @ 12:46:17
Manuel Pichler has a new post today about a feature he's added into the PHP_Depend application that tracks the dependencies in your code - a bit of DBus magic.
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, "Hey, mapi PHP_Depend has finished its job...", and here comes D-BUS in the game.
With the help of the DBus 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 0.9.0 branch to get the "notify-me" command line option to make it all work.
voice your opinion now!
phpdepend dbus notify tutorial
ThinkPHP Blog: Mayflower Barcamp Developing a PHP extension for Skype
by Chris Cornutt March 17, 2008 @ 10:24:29
On the ThinkPHP blog today, Andreas Uhsemann has posted about 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.
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.
As they worked on it, they realized that it was really D-Bus (the message bus system) 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.
voice your opinion now!
extension skype interface mayflower barcamp dbus message
|
Community Events
Don't see your event here? Let us know!
|