Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SitePoint PHP Blog:
Push Notifications with Prowl
Aug 22, 2013 @ 14:04:34

On the SitePoint PHP blog there's a new tutorial posted (by Lukas White) about connecting PHP with Growl notifications using the Prowl iOS-based tool.

Suppose, however, you want a quick and easy way to send messages to yourself or a select group of people without having to register an application with Apple and play around with various certificates and processes. You might be interested in learning about Prowl. [...] You can purchase a copy for your phone and “hook it up” to all sorts of services and applications – and perhaps most intriguingly, use its API to send messages from your own applications. That’s what we’ll look at in this article.

He helps you get all the pieces you'll need to get the example working - signing up for Prowl, downloading the iOS application and grabbing the API library from Github. He includes example code to set the provider key, create a filter for sending the message and pushing the request out to the API. He also includes an interesting example of a logging integration with Prowl and a ZendLog. He creates a custom log writer you can drop into your code.

tagged: push notifications prowl growl tutorial api

Link: http://www.sitepoint.com/push-notifications-with-prowl

AppBackr Blog:
Automated PHP unit testing for lazy coders
Aug 02, 2011 @ 15:41:59

In a recent post from the AppBackr blog they share a solution they've found for running unit tests automatically for lazy coders using a combination of PHPUnit, Watchr and Growl notifications (OS X-only, obviously).

Now you could run [your] tests manually after each change by typing 'phpunit ', but we were looking for something a little more comfortable. We want to decrease the transactional cost of running the tests as much as possible to make the lives of our engineers more pleasant. Making testing easy is the only way the engineers will run the tests frequently.

Instead they opted for Watchr, a tool that keeps an eye on a list of files looking for a change. When one happens, a process is fired off - in this case a PHPUnit run. To make it even easier to see feedback, they integrated it with Growl to show pass or fail results. He includes the source for his Watchr script to help you get started.

tagged: unittest watchr growl notification yii framework

Link:

Raphael Stolt's Blog:
Growling PHPUnit's test status
Jun 03, 2010 @ 16:26:37

Raphael Stolt has put together a guide showing how you can link PHPUnit and its test status to the Growl engine on OS X to share the results in a move visual way (than just watching the test runner).

Since I'm using PHPUnit more and more lately, especially in continuous testing sessions (sprints without hitting the continuous integration server), my dependence on a fast and more visual feedback loop rose. In this post I'll provide an easy solution that meets these requirements by utilizing PHPUnit's test listener feature.

He includes the code to attach the PHPUnit install to the Growl service via a custom listener that can give you a status of the tests from your most recent run (complete with color-coded feedback based on the results). With a few changes to the PHPUnit XML config file and link out to a script (stakeout.rb), he shows how to directly interface with Growl and includes a few screenshots on what the end result could look like.

tagged: growl phpunit integrate unittest runner

Link:

Daniel Cousineau's Blog:
PHP, Mumbles (Growl), and DBus: Sweeet
Feb 13, 2009 @ 16:26:33

Daniel Cousineau has a new post today that looks at his process for getting a Growl-like messaging system up and running in Ubuntu by combining Mumbles and PHP (via a DBus API).

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.

What he did find, thanks to Google, was a tool called D-Feet to help with debugging and a DBus extension for PHP that could add the needed support into his PHP installation. Following a bit of hacking and lots of testing, he was mostly successful. The only side effect is an Exception where the extension cannot correctly catch the Notify signal.

tagged: growl mumbles dbus notification ubuntu dfeet extension

Link:


Trending Topics: