PHP code example of zest / whoops

1. Go to this page and download the library: Download zest/whoops library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

zest / whoops example snippets



$whoops = new Whoops();

 
use Zest\Whoops;

$a = 10;
echo "The value of a is ".valueOfA();

/*Rest of code*/
echo "This is rest of code";


$whoops = new Whoops();
$whoops->setEditor('sublime');
//Rest of code....


$whoops = new Whoops();
$whoops->appendEditor("myeditor" , "myeditor://open?url=file://::file&line=::line",)