PHPackages                             solis/phpbreaker - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. solis/phpbreaker

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

solis/phpbreaker
================

This package contains a set of exceptions shared across Solis components

v2.1.0(8y ago)03.0k19MITPHPPHP ^7.0

Since Aug 5Pushed 8y agoCompare

[ Source](https://github.com/dekemvrios/phpbreaker)[ Packagist](https://packagist.org/packages/solis/phpbreaker)[ RSS](/packages/solis-phpbreaker/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (4)Versions (6)Used By (9)

Solis Exceptions Component
==========================

[](#solis-exceptions-component)

[![Codacy Badge](https://camo.githubusercontent.com/bd752d32d9c3e1c672f756afce23dac2e0fcc5a1c4620821daa30f7cef657a69/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3234376262376132386239623466633638313162353766363537316165323361)](https://www.codacy.com/app/rafaelbeecker/phpbreaker?utm_source=github.com&utm_medium=referral&utm_content=rafaelbeecker/phpbreaker&utm_campaign=badger)[![Codacy Badge](https://camo.githubusercontent.com/3af96deef3224ff18f3d2b968aca1e8d64c325067903b6b76c68a2194fd23d65/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f436f7665726167652f3234376262376132386239623466633638313162353766363537316165323361)](https://www.codacy.com/app/rafaelbeecker/phpbreaker?utm_source=github.com&utm_medium=referral&utm_content=rafaelbeecker/phpbreaker&utm_campaign=Badge_Coverage)[![Latest Stable Version](https://camo.githubusercontent.com/0c11fb19e817607c17456a9efe9426ac11c5340fa3f8c2155a3da82161dc0eba/68747470733a2f2f706f7365722e707567782e6f72672f736f6c69732f706870627265616b65722f762f737461626c65)](https://packagist.org/packages/solis/phpbreaker)[![License](https://camo.githubusercontent.com/91b84415c31327ad9a027f8da5e51c7c35ff5c91cfd45f8217e285ed0ac4ed76/68747470733a2f2f706f7365722e707567782e6f72672f736f6c69732f706870627265616b65722f6c6963656e7365)](https://packagist.org/packages/solis/phpbreaker)[![Build Status](https://camo.githubusercontent.com/7a600af5e5ff0a258fe62c3afb1139389f14fa1c18ec07335aa1e075635b192a/68747470733a2f2f7472617669732d63692e6f72672f72616661656c626565636b65722f706870627265616b65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/rafaelbeecker/phpbreaker)

This package contains a set of exceptions shared across Solis components.

Install
-------

[](#install)

The best way to use this component is through Composer

```
composer require solis/phpbreaker

```

Usage
-----

[](#usage)

The simplest usage is to thrown a implementation of Solis\\Breaker\\ExceptionInterface.

```
    use Solis\Breaker\ExceptionInterface;
    use Solis\Exceptions\RuntimeException;

    try {
        thrown new RuntimeException('something bad here', 500);
    } catch (ExceptionInterface $e){
        echo $e->getMessage();

        // you can get a representation of the exception as array, containing an error and a debug entry
        // $e->toArray();

        // same representation as before but in json format
        // $e->toJson();

        // get only the error entry as json representation
        // $e->getErrorAsJson();

        // get only the debug entry as json representation
        // $e->getDebugAsJson();

        // its possible to set custom data to the error entry of the exception
        // $e->getError()->setEntry($entry, $data);

        // the same for the debug entry
        // $e->getDebug()->setEntry($entry, $data);
    }
```

All exceptions implemented in this package extends one of the SPL Exceptions. So its possible to catch normally with catch \\Exception.

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

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

[](#contributing)

All feedback / bug reports / pull requests are welcome.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 98.8% 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 ~19 days

Total

5

Last Release

3129d ago

Major Versions

v1.0.0 → v2.0.02017-09-20

### Community

Maintainers

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

---

Top Contributors

[![realfabecker](https://avatars.githubusercontent.com/u/140275759?v=4)](https://github.com/realfabecker "realfabecker (82 commits)")[![codacy-badger](https://avatars.githubusercontent.com/u/23704769?v=4)](https://github.com/codacy-badger "codacy-badger (1 commits)")

---

Tags

exceptions

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/solis-phpbreaker/health.svg)

```
[![Health](https://phpackages.com/badges/solis-phpbreaker/health.svg)](https://phpackages.com/packages/solis-phpbreaker)
```

###  Alternatives

[kkszymanowski/traitor

Add a trait use statement to existing PHP class

1305.2M16](/packages/kkszymanowski-traitor)

PHPackages © 2026

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