newclass/vitium

PHP 错误管理器。

v0.1.1 2017-09-13 10:20 UTC

This package is auto-updated.

Last update: 2024-09-16 22:20:37 UTC


README

license PHP 5.5+

什么是 Vitium?

Vitium 是一个 PHP 错误管理器。自动检测语法错误、警告和已弃用功能,并重定向到类处理器。

安装

最佳安装方式是使用命令行中的 composer

composer require newclass/vitium
composer install

使用示例

use Vitium\ErrorManager;

$errorManager=new ErrorManager();
$errorManager->addHandler(new LogErrorHandler()); //Implement ErrorHandlerInterface