Get Noticed 2017, PHP, Quick Tips
Whoops – pretty PHP errors and exceptions
“Whoops!” is a PHP errors handler. It’s really simple to use and help you easy debug code.
Any PHP errors can you analyze on one pretty site with many usually information.
Compare two error Pages. Which looks better?
Standard error page:
Or Whoops:
Here find you live demo:
http://filp.github.io/whoops/demo/
You can install this framework in two easy steps.
- Install Whoops using Composer:
composer require filp/whoops
- Register in yours code:
$whoops = new \Whoops\Run; $whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler); $whoops->register();
Thats it! Now can you enjoy new error pages.
For more info visit the official site:
https://filp.github.io/whoops/
No Comment