Prints PHP exceptions in a Java style

Installs: 14

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/jorge-matricali/jtrace

v1.0 2014-02-16 03:09 UTC

This package is auto-updated.

Last update: 2025-09-19 12:08:26 UTC


README

Version 2.3.0 Build Status Coverage Status MIT licensed Packagist

jTrace PHP

Prints PHP exceptions in a Java style :)

Installation

You can add this library as a dependency to your project using Composer:

composer require jorge-matricali/jtrace

If you only need this library during development, then you should install using:

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:

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