PHP Exception Monitoring with Honeybadger

Honeybadger offers PHP Exception Monitoring that is easy to set up and supports more advanced features, like sending your own custom notices.

Don't forget where you come from

It's 2013, baby, you're a badass rails developer. Sure you've made a few mistakes. Most of them in PHP. But those days are long gone left behind in a trail of dust with your matchbox twenty LPs and your matrix trenchcoat.

...but lately, you've been twitchy. You've seen things. In the corner of your eye. In flashes in the mirror.

It's PHP. Everywhere, it's PHP. You realize you haven't left your legacy projects behind. You've just traded them with someone else. And they're way worse than you ever were.

But anyway. We're all adults here. We're over the whole "making fun of PHP" thing.

Gabe saves the day

You're responsible for these apps now. Wouldn't it be nice to have the same world-class error monitoring that you've grown used to in your rails projects?

Now you do.

Let's all give a huge round of applause to Gabe Evans. This super-talented ruby developer has taken a bullet for all of us and built the most amazing PHP client for Honeybadger.

Check it out on github

The setup is very simple:

`<?php

use Honeybadger\Honeybadger;

Honeybadger::$config->values(array(
    'api_key' => '[your-api-key]',
));
`

And it even supports more advanced features, like sending your own custom notices

`<?php

try
{
    $params = array(
        // Params that you pass to a method that can throw an exception.
    );
    my_unpredictable_method($params);
}
catch (Exception $e)
{
    Honeybadger::notify(array(
        'error_class'   => 'Special Error',
        'error_message' => 'Special Error: '.$e->getMessage(),
        'parameters'    => $params,
    ));
}
`

There's still a few features left to be ported over from the main gem, but all the major stuff is there. And if you find yourself missing a certain feature, let us know. We'll make it happen.

What to do next:
  1. Try Honeybadger for FREE
    Honeybadger helps you find and fix errors before your users can even report them. Get set up in minutes and check monitoring off your to-do list.
    Start free trial
    Easy 5-minute setup — No credit card required
  2. Get the Honeybadger newsletter
    Each month we share news, best practices, and stories from the DevOps & monitoring community—exclusively for developers like you.
    author photo

    Starr Horne

    Starr Horne is a Rubyist and Chief JavaScripter at Honeybadger.io. When she's not neck-deep in other people's bugs, she enjoys making furniture with traditional hand-tools, reading history and brewing beer in her garage in Seattle.

    More articles by Starr Horne
    Stop wasting time manually checking logs for errors!

    Try the only application health monitoring tool that allows you to track application errors, uptime, and cron jobs in one simple platform.

    • Know when critical errors occur, and which customers are affected.
    • Respond instantly when your systems go down.
    • Improve the health of your systems over time.
    • Fix problems before your customers can report them!

    As developers ourselves, we hated wasting time tracking down errors—so we built the system we always wanted.

    Honeybadger tracks everything you need and nothing you don't, creating one simple solution to keep your application running and error free so you can do what you do best—release new code. Try it free and see for yourself.

    Start free trial
    Simple 5-minute setup — No credit card required

    Learn more

    "We've looked at a lot of error management systems. Honeybadger is head and shoulders above the rest and somehow gets better with every new release."
    — Michael Smith, Cofounder & CTO of YvesBlue

    Honeybadger is trusted by top companies like: