PHPackages                             dazzle-php/throwable - 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. dazzle-php/throwable

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

dazzle-php/throwable
====================

Dazzle PHP Throwable Hierarchy.

v0.4.1(9y ago)43.2k15MITPHPPHP &gt;=5.6.7

Since Sep 16Pushed 8y ago1 watchersCompare

[ Source](https://github.com/dazzle-php/throwable)[ Packagist](https://packagist.org/packages/dazzle-php/throwable)[ Docs](http://kraken-php.com)[ RSS](/packages/dazzle-php-throwable/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (8)DependenciesVersions (11)Used By (5)

Dazzle Throwable Hierarchy
==========================

[](#dazzle-throwable-hierarchy)

[![Build Status](https://camo.githubusercontent.com/bdb1638fbabec8f1fdb325f95158b3cdac7e7b38cda8cecf6643df6f85304629/68747470733a2f2f7472617669732d63692e6f72672f64617a7a6c652d7068702f7468726f7761626c652e737667)](https://travis-ci.org/dazzle-php/throwable)[![Code Coverage](https://camo.githubusercontent.com/df468025728b0570c7a578039184567bd02ad99439c03928d52e86ed12ce5761/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f64617a7a6c652d7068702f7468726f7761626c652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/dazzle-php/throwable/?branch=master)[![Code Quality](https://camo.githubusercontent.com/6cfe722191e0964ebb3b9f481be2a76d77250000ad58954b4187ee91d4370e90/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f64617a7a6c652d7068702f7468726f7761626c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/dazzle-php/throwable/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/e8613a674be5364a8dad4556b9265204d30727b8dd410485a09765ebf4aabdeb/68747470733a2f2f706f7365722e707567782e6f72672f64617a7a6c652d7068702f7468726f7761626c652f762f737461626c65)](https://packagist.org/packages/dazzle-php/throwable)[![Latest Unstable Version](https://camo.githubusercontent.com/e44fb12e6c9367605240062dda59f4ed5f5b6234b768304231907e9e4de4827b/68747470733a2f2f706f7365722e707567782e6f72672f64617a7a6c652d7068702f7468726f7761626c652f762f756e737461626c65)](https://packagist.org/packages/dazzle-php/throwable)[![License](https://camo.githubusercontent.com/5e4b8cfa1a3c093b72ecaab75e679b8dec69e3341e97dbd822a210b59b3a6925/68747470733a2f2f706f7365722e707567782e6f72672f64617a7a6c652d7068702f7468726f7761626c652f6c6963656e7365)](https://packagist.org/packages/dazzle-php/throwable/license)

> **Note:** This repository is part of [Dazzle Project](https://github.com/dazzle-php/dazzle) - the next-gen library for PHP. The project's purpose is to provide PHP developers with a set of complete tools to build functional async applications. Please, make sure you read the attached README carefully and it is guaranteed you will be surprised how easy to use and powerful it is. In the meantime, you might want to check out the rest of our async libraries in [Dazzle repository](https://github.com/dazzle-php) for the full extent of Dazzle experience.

[![](https://raw.githubusercontent.com/dazzle-php/dazzle/master/media/dazzle-x125.png)](https://raw.githubusercontent.com/dazzle-php/dazzle/master/media/dazzle-x125.png)

Description
-----------

[](#description)

Dazzle Throwable is a component that provides unified throwable hierarchy and additional helpers.

Feature Highlights
------------------

[](#feature-highlights)

Dazzle Throwable features:

- Custom hierarchy of Throwables created in mind of unifying error and exception handling in PHP5 and PHP7,
- Custom human-readable format for stack trace and exception trace,
- Support for chaining Throwables,
- Built-in ErrorHandler,
- Built-in ExceptionHandler,
- Implementation of throwable objects proxy,
- ...and more.

Provided Example(s)
-------------------

[](#provided-examples)

Provided throwable hierarchy:

```
Throwable
    Error
        FatalError
        WarningError
        NoticeError
    Exception
        LogicException
            IllegalCallException
            IllegalFieldException
            InstantiationException
            InvalidArgumentException
            InvalidFormatException
            ResourceException
            ResourceOccupiedException
            ResourceUndefinedException
        RuntimeException
            CancellationException
            ExecutionException
            OutOfBoundsException
            OverflowException
            ReadException
            RejectionException
            TimeoutException
            UndeflowException
            UnexpectedValueException
            WriteException

```

Requirements
------------

[](#requirements)

Dazzle Throwable requires:

- PHP-5.6 or PHP-7.0+,
- UNIX or Windows OS.

Installation
------------

[](#installation)

To install this library make sure you have [composer](https://getcomposer.org/) installed, then run following command:

```
$> composer require dazzle-php/throwable

```

Tests
-----

[](#tests)

Tests can be run via:

```
$> vendor/bin/phpunit -d memory_limit=1024M

```

Versioning
----------

[](#versioning)

Versioning of Dazzle libraries is described in versioning section of [Dazzle Project](https://github.com/dazzle-php/dazzle) index repository. Please, refer there for detailed information on the subject.

Contributing
------------

[](#contributing)

Thank you for considering contributing to this repository!

- The contribution guide can be found in the [contribution tips](https://github.com/dazzle-php/throwable/blob/master/CONTRIBUTING.md).
- Open tickets can be found in [issues section](https://github.com/dazzle-php/throwable/issues).
- Current contributors are listed in [graphs section](https://github.com/dazzle-php/throwable/graphs/contributors)
- To contact the author(s) see the information attached in [composer.json](https://github.com/dazzle-php/throwable/blob/master/composer.json) file.

License
-------

[](#license)

Dazzle Throwable is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).

---

*"Everything is possible. The impossible just takes longer."* ― Dan Brown

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Every ~33 days

Recently: every ~15 days

Total

10

Last Release

3232d ago

PHP version history (2 changes)v0.3.0PHP &gt;=5.5.9

0.4.x-devPHP &gt;=5.6.7

### Community

Maintainers

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

---

Top Contributors

[![khelle](https://avatars.githubusercontent.com/u/5642657?v=4)](https://github.com/khelle "khelle (46 commits)")

---

Tags

errorerror-handlingexceptionexception-handlingphpphp-libphp7throwexceptionerrorthrowablekrakenkraken-php

### Embed Badge

![Health badge](/badges/dazzle-php-throwable/health.svg)

```
[![Health](https://phpackages.com/badges/dazzle-php-throwable/health.svg)](https://phpackages.com/packages/dazzle-php-throwable)
```

###  Alternatives

[filp/whoops

php error handling for cool kids

13.2k402.4M1.4k](/packages/filp-whoops)[ikkez/f3-falsum

Pretty error handling for Fat-Free Framework

21145.8k3](/packages/ikkez-f3-falsum)[kuria/error

Makes handling and debugging PHP errors suck less

1920.0k2](/packages/kuria-error)[thehocinesaad/laravel-error-ai

This package adds Ask AI button to the error page.

2214.4k](/packages/thehocinesaad-laravel-error-ai)

PHPackages © 2026

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