- Notifications
You must be signed in to change notification settings - Fork3
[READ ONLY] Subtree split of the Zest Whoop component (seehttps://github.com/zestframework/Zest_Framework)
License
lablnet/Whoops
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
[READ ONLY] Subtree split of the Zest Whoop component (seehttps://github.com/zestframework/Zest_Framework)
Whoops is a PHP library for handling exceptions and errors.
- PHP
- Composer
- Flexible, stack-based error handling.
- Stand-alone library with (currently) no required dependencies.
- Highlight the error line with red color.
- Show preview code in browser.
- Clean, well-structured & tested code-base.
- Includes the ability toopen referenced files directly in your editor and IDE
Installing this package is very simple, first ensure you have the right PHP version and composer installed then in your terminal/(command prompt) run:composer require zest/whoops
Register the handler in your code
<?php$whoops =newWhoops();
Example:
<?phpuseZest\Whoops;require'../vendor/autoload.php';$whoops =newWhoops();$a =10;echo"The value of a is".valueOfA();/*Rest of code*/echo"This is rest of code";
Whoops comes with the ability to open referenced files directly in your IDE or editor. This feature only works in case your php-source files are locally accessible to the machine on which the editor is installed.
<?php$whoops =newWhoops();$whoops->setEditor('sublime');//Rest of code....
The following editors are currently supported by default.
sublime
Sublime editor
Append your own/custom editor
<?php$whoops =newWhoops();$whoops->appendEditor("myeditor" ,"myeditor://open?url=file://::file&line=::line",)
- Bootstrap 4 ready.
- Includes the ability to open referenced files directly in your editor and IDE]
- Should add more IDE\Editor support.
- Add new feature to show Enviroment details.
About
[READ ONLY] Subtree split of the Zest Whoop component (seehttps://github.com/zestframework/Zest_Framework)