, (*1)
jTrace PHP
Prints PHP exceptions in a Java style :), (*2)
Installation
You can add this library as a dependency to your project using Composer:, (*3)
composer require jorge-matricali/jtrace
If you only need this library during development, then you should install using:, (*4)
composer require --dev jorge-matricali/jtrace
Usage
use JorgeMatricali\JTrace;
try {
// ...
} catch (Exception $e) {
echo JTrace::print($e);
}
The code above yields the output below:, (*5)
Phalcon\Mvc\Dispatcher\Exception: IndexController handler class cannot be loaded at Phalcon.Mvc.Dispatcher._throwDispatchException(index.php:93) at Phalcon.Dispatcher._dispatch(Unknown Source) at Phalcon.Dispatcher.dispatch(Unknown Source) at Phalcon.Mvc.Application.handle(Unknown Source) ... 1 more, (*6)