PHPackages                             getsky/pretty-exceptions - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. getsky/pretty-exceptions

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

getsky/pretty-exceptions
========================

beauty-exceptions plugin for Phalcon

0651PHP

Since Nov 2Pushed 11y ago1 watchersCompare

[ Source](https://github.com/JimmDiGrizli/pretty-exceptions)[ Packagist](https://packagist.org/packages/getsky/pretty-exceptions)[ RSS](/packages/getsky-pretty-exceptions/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Pretty Exceptions
=================

[](#pretty-exceptions)

[![Pretty-Exceptions](https://camo.githubusercontent.com/1962f3c82bbb1cb19d34645385efa200bc12697a7d52956434a57fcc0448f11f/687474703a2f2f7777772e7068616c636f6e7068702e636f6d2f696d672f7072657474792e6a7067)](https://camo.githubusercontent.com/1962f3c82bbb1cb19d34645385efa200bc12697a7d52956434a57fcc0448f11f/687474703a2f2f7777772e7068616c636f6e7068702e636f6d2f696d672f7072657474792e6a7067)

[Phalcon](http://phalconphp.com) is a web framework delivered as a C extension providing high performance and lower resource consumption.

Pretty Exceptions is an utility to show exceptions/errors/warnings/notices using a nicely visualization.

This utility is not intended to be used in a production stage.

This utility catches uncatched exceptions, remember to remove any try/catch that avoid the utility can work.

The code in this repository is written in PHP.

Automatic Usage
---------------

[](#automatic-usage)

The easiest way to use this utility is call static methods:

```
GetSky\Phalcon\Utils\PrettyExceptions::listenException();
GetSky\Phalcon\Utils\PrettyExceptions::listenError();
```

Manual Usage
------------

[](#manual-usage)

Listen for exceptions:

```
set_exception_handler(function($e)
{
	$p = new GetSky\Phalcon\Utils\PrettyExceptions();
	return $p->handle($e);
});
```

Listen for user errors/warnings/notices:

```
set_error_handler(function($errorCode, $errorMessage, $errorFile, $errorLine)
{
	$p = new GetSky\Phalcon\Utils\PrettyExceptions();
	return $p->handleError($errorCode, $errorMessage, $errorFile, $errorLine);
});
```

Options
-------

[](#options)

The following is the way to configure the utility:

```
$p = new GetSky\Phalcon\Utils\PrettyExceptions();

//Change the base uri for static resources
$p->setBaseUri('/');

//Set if the backtrace must be shown
$p->showBacktrace(true);

//Set whether if open the user files and show its code
$p->showFiles(true);

//Set whether show the complete file or just the relevant fragment
$p->showFileFragment(true);

/**
 * Set whether show human readable dump of current Phalcon application instance
 *  Can optionally pass a Phalcon application instance as a prameter in the
 *  constructor, or as the last parameter of PrettyExceptions::handle() and
 *  PrettyExceptions::handleError()
 */
$p->showApplicationDump(true);

//Change the CSS theme (default, night or minimalist)
$p->setTheme('default');

//Handle the error/exception
//...
```

Live Demo
---------

[](#live-demo)

A live demo is available [here](http://test.phalconphp.com/exception.html) and [here](http://test.phalconphp.com/exception2.html)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f3317bf3a7622b52216bc897cf6875f60a51c5c95bce653ce0f9dec77ef92d7?d=identicon)[JimmDiGrizli](/maintainers/JimmDiGrizli)

---

Top Contributors

[![kenjikobe](https://avatars.githubusercontent.com/u/2137523?v=4)](https://github.com/kenjikobe "kenjikobe (2 commits)")[![matthewbaggett](https://avatars.githubusercontent.com/u/943948?v=4)](https://github.com/matthewbaggett "matthewbaggett (2 commits)")[![wyleiLefflanator](https://avatars.githubusercontent.com/u/17790379?v=4)](https://github.com/wyleiLefflanator "wyleiLefflanator (2 commits)")[![rianorie](https://avatars.githubusercontent.com/u/2292861?v=4)](https://github.com/rianorie "rianorie (1 commits)")

### Embed Badge

![Health badge](/badges/getsky-pretty-exceptions/health.svg)

```
[![Health](https://phpackages.com/badges/getsky-pretty-exceptions/health.svg)](https://phpackages.com/packages/getsky-pretty-exceptions)
```

###  Alternatives

[symfony/stopwatch

Provides a way to profile code

2.8k387.2M918](/packages/symfony-stopwatch)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k662.9k29](/packages/fruitcake-laravel-debugbar)[spatie/ignition

A beautiful error page for PHP applications.

510147.6M69](/packages/spatie-ignition)[jokkedk/webgrind

Webgrind is a Xdebug profiling web frontend in PHP5. It implements a subset of the features of kcachegrind and installs in seconds and works on all platforms. For quick'n'dirty optimizations it does the job.

3.3k193.0k](/packages/jokkedk-webgrind)[koriym/printo

An object graph visualizer.

1421.8M2](/packages/koriym-printo)[soloterm/dumps

A Laravel command to intercept dumps from your Laravel application.

125285.7k3](/packages/soloterm-dumps)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
