Skip to content

Instantly share code, notes, and snippets.

@Stormix
Created July 18, 2017 18:29
Show Gist options
  • Save Stormix/52cd0704f2b528da865a4e8aad23bd6f to your computer and use it in GitHub Desktop.
Save Stormix/52cd0704f2b528da865a4e8aad23bd6f to your computer and use it in GitHub Desktop.
Using Whoops Error Handler
<?php
$whoops = new \Whoops\Run;
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
$whoops->register();
// Uncomment the following line to view an error page example.
// echo 1/0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment