Browse files

updating the readme

  • Loading branch information...
rich committed Apr 9, 2009
1 parent b72089a commit 3e217054c64efde0498df61fc57f54da79b3927a
Showing with 13 additions and 6 deletions.
  1. +6 −0 Hoptoad.php
  2. +6 −4 README.markdown
  3. +1 −2 example.php
@@ -5,6 +5,12 @@
class Hoptoad
+ public static function installHandlers()
+ {
+ set_error_handler(array("Hoptoad", "errorHandler"));
+ set_exception_handler(array("Hoptoad", "exceptionHandler"));
+ }
public static function errorHandler($code, $message, $file, $line)
if ($code == E_STRICT) return;
@@ -1,10 +1,12 @@
# Introduction
-This is a very rough first stab at a PHP [Hoptoad]( notifier. I'm using it in production right now with success but that's no guarantee it won't take down your site, destroy your business and ransom your family.
+This is a simple [Hoptoad]( notifier for PHP. It's been used in a few production sites now with success. It's not quite as fully featured as the official Ruby notifier but it works well.
-# Known Bugs
+# Limitations
-The Hoptoad::tracer() method does not generate traces that are 100% correct.
+This notifier does not contain two big features from the Ruby notifier. The two are error filtering and deploy tracking. Error filtering will be coming in a future release.
+For deploy tracking, since I use Capistrano to deploy my PHP apps, I simply use the Ruby notifier to perform the deploy tracking. For this reason, unless someone wants to contribute patches, I don't see deploy tracking coming to the php notifier.
# Requirements
@@ -19,7 +21,7 @@ It also uses Pear's HTTP_Request:
# License
-Copyright (c) 2008, Rich Cavanaugh
+Copyright (c) 2009, Rich Cavanaugh
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
@@ -2,5 +2,4 @@
- set_error_handler(array("Hoptoad", "errorHandler"));
- set_exception_handler(array("Hoptoad", "exceptionHandler"));
+ Hoptoad::installHandlers();

0 comments on commit 3e21705

Please sign in to comment.