PHPackages                             ovr/phalcon-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. ovr/phalcon-pretty-exceptions

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

ovr/phalcon-pretty-exceptions
=============================

Beauty-exceptions plugin for Phalcon

0.1.0(10y ago)27.3k11MITPHPPHP &gt;=5.3

Since Oct 2Pushed 10y ago1 watchersCompare

[ Source](https://github.com/ovr/pretty-exceptions)[ Packagist](https://packagist.org/packages/ovr/phalcon-pretty-exceptions)[ RSS](/packages/ovr-phalcon-pretty-exceptions/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)DependenciesVersions (3)Used By (1)

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 include its 'loader':

```
require '/path/to/pretty-exceptions/loader.php';
```

Manual include
--------------

[](#manual-include)

Or you could include the utility manually or via an autoloader:

```
//Requiring the file
require '/path/to/pretty-exceptions/Library.php';

//Or using an autoloader
$loader = new Phalcon\Loader();

$loader->registerNamespaces(array(
        'Phalcon\\Utils' => '/path/to/pretty-exceptions/Library/Phalcon/Utils/'
));

$loader->register();
```

Usage
-----

[](#usage)

Listen for exceptions:

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

Listen for user errors/warnings/notices:

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

Options
-------

[](#options)

The following is the way to configure the utility:

```
$p = new \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

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3661d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c019ea1f0133ad14d256163bc4d25a428b15f08083b15fdd380dc215e0e26177?d=identicon)[ovr](/maintainers/ovr)

---

Top Contributors

[![ovr](https://avatars.githubusercontent.com/u/572096?v=4)](https://github.com/ovr "ovr (6 commits)")[![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)")

### Embed Badge

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

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

###  Alternatives

[fjogeleit/prometheus-messenger-middleware

Prometheus Middleware for the Symfony Messenger Component

2255.2k](/packages/fjogeleit-prometheus-messenger-middleware)[georgringer/backend-debug

Some debug helper for the TYPO3 backend

2032.4k1](/packages/georgringer-backend-debug)[spatie/craft-ray

Easily debug CraftCMS projects

1638.4k](/packages/spatie-craft-ray)

PHPackages © 2026

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