Vitium is a PHP error manager. Auto detect syntax error, notice, deprecated na redirect to class handler.
The best way to install is to use the composer by command:
composer require newclass/vitium
composer install
use Vitium\ErrorManager;
$errorManager=new ErrorManager();
$errorManager->addHandler(new LogErrorHandler()); //Implement ErrorHandlerInterface