Introduction to Whoops
Lab: Let’s Build a PHP (Non-WordPress) Sandbox
Video Runtime: 10:02
Let me introduce you to Whoops. You are going to love this error display. Not only is it nice to look at versus the out-of-box PHP orange error table, but it also gives you a lot of useful information. You can click on the code and view it right in the display. You get great details too. It will help you debug your code.
You will build the code to set Whoops up and get it running. You’ll also be launching Composer by loading it’s autoloader file using the PHP instructions: __DIR__
(which is a double underscore before and after DIR
) and require_once
.
Here’s a tip for you: you can configure up different editor themes. I like the sublime one. But you can choose from sublime, emacs, textmate, and macvim.
Who needs copy/paste? Right. Writing code from scratch is fun!
Episodes
Total Lab Runtime: 00:39:24
- 1 Lab Introductionfree 06:25
- 2 Spin Up the Web Serverfree 01:24
- 3 Folder Structurefree 03:01
- 4 Setup Composer in Your Pluginfree 14:47
- 5 Introduction to Whoopsfree 10:02
- 6 Introduction to Kintfree 03:45