composer require filp/whoops
安装whoops
<?php
//使用Composer自动加载器
require 'vendor/autoload.php'
//设置Whoops提供的错误和异常处理的程序
$whoops = new \Whoops\Run;
$whoops -> pushHandler(new \Whoops\Handler\PrettyPageHandler)
$whools->register
composer require filp/whoops
安装whoops
<?php
//使用Composer自动加载器
require 'vendor/autoload.php'
//设置Whoops提供的错误和异常处理的程序
$whoops = new \Whoops\Run;
$whoops -> pushHandler(new \Whoops\Handler\PrettyPageHandler)
$whools->register