On NetTuts.com today there's a new screencast posted showing you how to create an Alfred extension with PHP (OS X only, obviously). Alfred is "a productivity application for Mac OS X, which aims to save you time in searching your local computer and the web. Whether it's maps, Amazon, eBay, Wikipedia, you can feed your web addiction quicker than ever before".
The tutorial walks you through the process of creating the extension (requires v0.99). His example extension is a shell script that pulls contents from Lipsum.com and puts it on your clipboard. He uses the PHP Simple HTML Dom Parser library to extract the contents of the page.