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

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

juanchosl/exceptions
====================

A small, lightweight collection of Exceptions that are using the standard status codes for use on requests

1.0.6(7mo ago)15479MITPHPPHP ^7.4 || ^8.0

Since Mar 16Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/JuanchoSL/Exceptions)[ Packagist](https://packagist.org/packages/juanchosl/exceptions)[ Docs](https://github.com/JuanchoSL/Exceptions)[ RSS](/packages/juanchosl-exceptions/feed)WikiDiscussions 1.0 Synced today

READMEChangelog (7)Dependencies (2)Versions (9)Used By (9)

Exceptions
==========

[](#exceptions)

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

[](#description)

A small, lightweight collection of Exceptions that are using the standard status codes for use on requests

Install
-------

[](#install)

```
composer require juanchosl/exceptions
```

How use it
----------

[](#how-use-it)

Load composer autoload and use the JuanchoSL\\Exceptions{EXCEPTION} class

```
if(!files_exists($full_path)){
    throw new NotFoundException("The file '{$full_path}' does not exists");
}
```

Available Code exceptions
-------------------------

[](#available-code-exceptions)

CodeClass304NotModifiedException400BadRequestException401UnauthorizedException402PaymentRequiredException403ForbiddenException404NotFoundException405MethodNotAllowedException406NotAcceptableException408DestinationUnreachableException409ConflictException410GoneException412PreconditionFailedException415UnsupportedMediaTypeException416RangeNotSatisfiableException417ExpectationFailedException422UnprocessableEntityException423LockedException424FailedDependencyException428PreconditionRequiredException429TooManyRequestsException451UnavailableLegalReasonException501NotImplementedException503ServiceUnavailableException

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance68

Regular maintenance activity

Popularity18

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity56

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

Recently: every ~217 days

Total

8

Last Release

210d ago

PHP version history (2 changes)1.0.0PHP ^7.1 || ^8.0

1.0.6PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/18701207?v=4)[Juan Sánchez](/maintainers/Juanchosl)[@JuanchoSL](https://github.com/JuanchoSL)

---

Top Contributors

[![JuanchoSL](https://avatars.githubusercontent.com/u/18701207?v=4)](https://github.com/JuanchoSL "JuanchoSL (39 commits)")

---

Tags

exceptions

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[kdyby/strict-objects

Simple trait to make your class strict, when calling or accessing undefined member (property or method).

321.7M18](/packages/kdyby-strict-objects)[orisai/exceptions

Exceptions designed for static analysis and easy usage

22183.8k30](/packages/orisai-exceptions)[dstuecken/php7ify

php7ify is a project that brings new php7 classes and exceptions to php 5.x.

11158.7k1](/packages/dstuecken-php7ify)

PHPackages © 2026

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