July 6th, 2012
Turns out Exceptional.io has a third-party PHP client that is incredibly simple to set up, even using WordPress: exceptional-php. Here are the steps I used to set it up:
- Sign for for a free 1-month trial on Exceptional.io, and retrieve your API key from the App Settings.
- Checkout the exceptional-php repo somewhere in your WordPress installation, I dropped in the root folder.
- Now we need to include and set up the library. To do this we are going to hook into the ‘init’ action with the code below. I placed this in my theme’s functions.php, but feel free to place this anywhere whether the add_action function is available (in a plugin for example):
- That should be it!
NB: I have only tested this with WordPress 3.3+, but I imagine the PHP version matters more.