minond / nice_error

更友好的错误输出

dev-master 2014-03-28 01:42 UTC

This package is not auto-updated.

Last update: 2024-09-23 16:02:35 UTC


README

为PHP提供更友好的错误。只需在composer文件中包含"minond/nice_error": "dev-master",将NICE_ERRORS环境变量设置为"1",即可完成

{
	"require-dev": {
		"minond/nice_error": "dev-master"
	}
}
NICE_ERRORS=1 php your_php_script.php

浏览器输出

screenshot

命令行输出

screenshot


灵感来源于[Better Errors](https://github.com/charliesome/better_errors).