GeekTool-RealmStatus is a project mainly written in PHP, it's free.
GeekTool Script to display WoW Realm Status