• Home
  • Get Noticed 2017
  • PHP
  • Quick Tips
  • Contact
  • About me

Bartosz Sosna Blog

Bartosz Sosna Blog

PHP BLOG

Whoops – pretty PHP errors and exceptions
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.

  1. Install Whoops using Composer:
    composer require filp/whoops
  2. 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/

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on Google+ (Opens in new window)

Related

Written by Bartosz Sosna in March 5, 2017 / 1155 Views
Tags | dsp17, php, quick tips
AUTHOR
Bartosz Sosna

I'm Web and App developer. I love gadgets and new technologies. I'm also productivity freak.

You Might Also Like

Make PhpStorm faster

Make PhpStorm faster in two effortless steps

April 2, 2017

How to convert cURL syntax to PHP, Node.js or Python

February 22, 2017

How to connect PHP container with MySql container

April 23, 2017

No Comment

Please Post Your Comments & Reviews
Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Previous Post
Next Post

Serach

Newsletter

Latest Posts

  • API, Get Noticed 2017, PHP“Image Optimizer API” is ready“Get Notice 2017” contest is over My project “Image Optimizer…May 21, 2017
  • Get Noticed 2017, Quick Tips, zshZ shell (zsh) – better bashWhy zsh is better? I use console from years and…May 18, 2017
  • API, Get Noticed 2017, Quick TipsPostman – powerful tool to work with APIPostman – powerful tool to work with API I’m creating…May 7, 2017
  • Capistrano, Get Noticed 2017, PHP, Quick TipsHow to add tasks to capistranoHow to add tasks to Capistrano I wrote in post…May 5, 2017
  • Get Noticed 2017, MySQL, PHP, Quick TipsPhinx – PHP database migrationWhat is “database migration” I meet migrations first time in…April 30, 2017

STAY UPDATED

About Me

About Me

Web and App developer.

I'm Web and App developer. I love gadgets and new technologies. I'm also productivity freak.

About me (de)

Latest Posts

  • API, Get Noticed 2017, PHP“Image Optimizer API” is ready“Get Notice 2017” contest is over My project “Image Optimizer…May 21, 2017
  • Get Noticed 2017, Quick Tips, zshZ shell (zsh) – better bashWhy zsh is better? I use console from years and…May 18, 2017
  • API, Get Noticed 2017, Quick TipsPostman – powerful tool to work with APIPostman – powerful tool to work with API I’m creating…May 7, 2017
  • Capistrano, Get Noticed 2017, PHP, Quick TipsHow to add tasks to capistranoHow to add tasks to Capistrano I wrote in post…May 5, 2017
  • Get Noticed 2017, MySQL, PHP, Quick TipsPhinx – PHP database migrationWhat is “database migration” I meet migrations first time in…April 30, 2017
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

FOLLOW ME ON TWITTER

  • W końcu MacBook Pro bez bezużytczego touch bara? https://t.co/5tweGBUxP28 days ago
  • Ostatnio dodałem wpis o tym jak zintegrować PhpStorm z WSL2 i Docker, a dzisiaj powstał nowy wpis jak taki zestaw z… https://t.co/fcbezzzy5L23 days ago
Bartosz Sosna Blog

Copyright © Bartosz Sosna