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

ActiveLibrary

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

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

1.0.6(5mo ago)1481↓100%9MITPHPPHP ^7.4 || ^8.0

Since Mar 16Pushed 4mo 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 1mo ago

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

42

—

FairBetter than 90% of packages

Maintenance74

Regular maintenance activity

Popularity17

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity55

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

164d ago

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

1.0.6PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/bd6d3dea7eb469817524c42a80683e95793ed4800a6794366503355af046a726?d=identicon)[Juanchosl](/maintainers/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

[bugsnag/bugsnag-laravel

Official Bugsnag notifier for Laravel applications.

90334.6M36](/packages/bugsnag-bugsnag-laravel)[bugsnag/bugsnag

Official Bugsnag notifier for PHP applications.

56347.0M78](/packages/bugsnag-bugsnag)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[rollbar/rollbar

Monitors errors and exceptions and reports them to Rollbar

33723.7M82](/packages/rollbar-rollbar)[graham-campbell/exceptions

Provides A Powerful Error Response System For Both Development And Production

5911.3M4](/packages/graham-campbell-exceptions)[bugsnag/bugsnag-symfony

Official BugSnag notifier for Symfony applications.

453.0M3](/packages/bugsnag-bugsnag-symfony)

PHPackages © 2026

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