PHPackages                             crazycodr/standard-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. crazycodr/standard-exceptions

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

crazycodr/standard-exceptions
=============================

This project is aimed at providing additional standard exceptions to php. Many exceptions that are missing from the SPL are constantly being reproduced in different projects. By providing a package of high-quality, well organised exceptions, it will, in the long run, increase interoperability between projects.

2.4.3(6y ago)146215.2k↑95.3%10[1 PRs](https://github.com/crazycodr/standard-exceptions/pulls)6MITPHPPHP &gt;=7.1CI failing

Since Nov 8Pushed 1y ago14 watchersCompare

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

READMEChangelog (10)Dependencies (2)Versions (18)Used By (6)

[![Latest Stable Version](https://camo.githubusercontent.com/d0148df2cf473b0ad083bf96c1c533780b858185671d4c906caf1c2608efd073/68747470733a2f2f706f7365722e707567782e6f72672f6372617a79636f64722f7374616e646172642d657863657074696f6e732f76657273696f6e2e706e67)](https://packagist.org/packages/crazycodr/standard-exceptions) [![Monthly Downloads](https://camo.githubusercontent.com/165343976a31ec711796e7ebcaa432029cb701b868a05c0639c09f28731430d4/68747470733a2f2f706f7365722e707567782e6f72672f6372617a79636f64722f7374616e646172642d657863657074696f6e732f642f6d6f6e74686c79)](https://packagist.org/packages/crazycodr/standard-exceptions) [![Build Status](https://camo.githubusercontent.com/ebd433479aa6475a0efc3aa03ca24e2d511e5c396c02489fb19f3910bfdc5dc6/68747470733a2f2f7472617669732d63692e6f72672f6372617a79636f64722f7374616e646172642d657863657074696f6e732e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/crazycodr/standard-exceptions)

Standard Exceptions Package
===========================

[](#standard-exceptions-package)

This project is aimed at providing additional standard exceptions to [PHP](http://www.php.net/).

Many exceptions that are missing from the SPL are constantly being reproduced in different projects. By providing a package of high-quality, well organised exceptions, it will, in the long run, increase interoperability between projects and libraries.

Getting started
===============

[](#getting-started)

To install `Standard Exceptions`, just require it using [Composer](http://www.getcomposer.org/):

```
$ composer require crazycodr/standard-exceptions

```

And then just start throwing exceptions:

```
throw new \Exceptions\Data\NotFoundException();
```

Or catch them:

```
try {

} catch(\Exceptions\Data\NotFoundExceptions $ex){

}
```

Or even better, catch exceptions with similar means:

```
try {

} catch(\Exceptions\Tag\NotFoundTag $ex){

}
```

For more information, visit the [Getting Started Page](docs/getting-started.md) or for even more information, you get read the whole [Documentation](docs/index.md).

If you need help upgrading for the old version 1 to this version, see the [Upgrading from Version 1 to Version 2](docs/upgrade-1-2.md) documentation page.

Features
========

[](#features)

- Highly comprehensive list of exceptions and namespaces: [Browse](docs/exceptions/)
- [Tag interfaces](docs/tags.md) to catch common exceptions with similar means but different contexts
- Exceptions define default messages and error codes using the [DefaultsInterface and DefaultConstructorTrait](docs/helpers.md)
- Throwing new exceptions from another exception allows easier exception chaining using [FromException helper](docs/helpers.md)

Contribution
============

[](#contribution)

Don't hesitate to contribute to this package by:

- Proposing new exceptions or namespaces
- Fix documentation issues or bugs by opening PRs
- Using it and spreading it's use throughout projects and libraries

If you want to contribute to the code base go to the [Contributing page](docs/contribute.md).

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity49

Moderate usage in the ecosystem

Community26

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 77.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 ~151 days

Recently: every ~131 days

Total

16

Last Release

2308d ago

Major Versions

1.2.1 → 2.0.02016-04-04

### Community

Maintainers

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

---

Top Contributors

[![crazycodr](https://avatars.githubusercontent.com/u/4398521?v=4)](https://github.com/crazycodr "crazycodr (14 commits)")[![Gounlaf](https://avatars.githubusercontent.com/u/236413?v=4)](https://github.com/Gounlaf "Gounlaf (2 commits)")[![anatolykazantsev](https://avatars.githubusercontent.com/u/6204068?v=4)](https://github.com/anatolykazantsev "anatolykazantsev (1 commits)")[![jcbinet](https://avatars.githubusercontent.com/u/17210882?v=4)](https://github.com/jcbinet "jcbinet (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[gong023/ayaml

utility to convert yaml to array

13109.4k](/packages/gong023-ayaml)

PHPackages © 2026

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