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

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

orisai/exceptions
=================

Exceptions designed for static analysis and easy usage

1.1.5(1y ago)22183.8k↑11.6%220MPL-2.0PHPPHP 7.4 - 8.4CI failing

Since Nov 10Pushed 1y ago2 watchersCompare

[ Source](https://github.com/orisai/exceptions)[ Packagist](https://packagist.org/packages/orisai/exceptions)[ Docs](https://github.com/orisai/exceptions)[ RSS](/packages/orisai-exceptions/feed)WikiDiscussions v1.x Synced yesterday

READMEChangelogDependencies (11)Versions (8)Used By (20)

 [![Orisai](https://github.com/orisai/.github/raw/main/images/repo_title.png?raw=true)](https://github.com/orisai/.github/blob/main/images/repo_title.png?raw=true)
 Exceptions
=================================================================================================================================================================================

[](#exceptions)

 Exceptions designed for static analysis and easy usage

 📄 Check out our [documentation](docs/README.md).

 💸 If you like Orisai, please [make a donation](https://orisai.dev/sponsor). Thank you!

 [![](https://github.com/orisai/exceptions/actions/workflows/ci.yaml/badge.svg?branch=v1.x)](https://github.com/orisai/exceptions/actions?query=workflow:CI+branch:v1.x) [![](https://camo.githubusercontent.com/8df57523a5370107b24f2bde08aa877add41f84bffdbbb4c805385b9922b9aeb/68747470733a2f2f62616467656e2e6e65742f636f766572616c6c732f632f6769746875622f6f72697361692f657863657074696f6e732f76312e783f63616368653d333030)](https://coveralls.io/github/orisai/exceptions?branch=v1.x) [![](https://camo.githubusercontent.com/da91a6e4ab785d49d7e1391aaf9793a30ae295c2ad9e48409337977642a5427e/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d68747470733a2f2f62616467652d6170692e737472796b65722d6d757461746f722e696f2f6769746875622e636f6d2f6f72697361692f657863657074696f6e732f76312e78)](https://dashboard.stryker-mutator.io/reports/github.com/orisai/exceptions/v1.x) [![](https://camo.githubusercontent.com/2b2410f8d1ad3e86803b4515eaab0cc4953eb4b7ef35813768cf5a4b5e73f4b6/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f64742f6f72697361692f657863657074696f6e733f63616368653d33363030)](https://packagist.org/packages/orisai/exceptions) [![](https://camo.githubusercontent.com/18dfae2fe75587e95146657398fab8f4d009e21f3bc38e20344fc7165d6b5dca/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f762f6f72697361692f657863657074696f6e733f63616368653d33363030)](https://packagist.org/packages/orisai/exceptions) [![](https://camo.githubusercontent.com/40b2374865c7727b1568a7b77cc1a8068979ac265d85d659fe73b2d337b458e6/68747470733a2f2f62616467656e2e6e65742f62616467652f6c6963656e73652f4d504c2d322e302f626c75653f63616368653d33363030)](https://choosealicense.com/licenses/mpl-2.0/)

```
use Orisai\Exceptions\Logic\InvalidState;
use Orisai\Exceptions\Message;

$message = Message::create()
    ->withContext('Trying to commit an import.')
    ->withProblem('There is nothing to commit.')
    ->withSolution('Check that the import files are not empty, and that filters are not too restrictive.');

throw InvalidState::create()
    ->withMessage($message);
```

... and [more](docs/README.md).

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance44

Moderate activity, may be stable

Popularity43

Moderate usage in the ecosystem

Community21

Small or concentrated contributor base

Maturity77

Established project with proven stability

 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 ~241 days

Recently: every ~233 days

Total

8

Last Release

367d ago

PHP version history (4 changes)1.0.0PHP &gt;=7.4.0 &lt;8.2.0

1.1.3PHP &gt;=7.4.0 &lt;8.3.0

1.1.4PHP 7.4 - 8.3

1.1.5PHP 7.4 - 8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20974277?v=4)[Marek Bartoš](/maintainers/mabar)[@mabar](https://github.com/mabar)

---

Top Contributors

[![mabar](https://avatars.githubusercontent.com/u/20974277?v=4)](https://github.com/mabar "mabar (125 commits)")

---

Tags

exceptionsorisaiphpphpstanPHPStanexceptionsorisai

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.5k196.2M3.1k](/packages/composer-composer)[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k251.2M25.2k](/packages/friendsofphp-php-cs-fixer)[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.5k10](/packages/helsingborg-stad-municipio)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[symfony/type-info

Extracts PHP types information.

20069.8M269](/packages/symfony-type-info)[ergebnis/phpstan-rules

Provides rules for phpstan/phpstan.

4579.8M286](/packages/ergebnis-phpstan-rules)

PHPackages © 2026

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