PHPackages                             imemento/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. [HTTP &amp; Networking](/categories/http)
4. /
5. imemento/exceptions

ActiveLibrary[HTTP &amp; Networking](/categories/http)

imemento/exceptions
===================

HTTP Exceptions

12.0.0(4mo ago)02.6k1MITPHPPHP ^8.2CI failing

Since Mar 22Pushed 4mo ago2 watchersCompare

[ Source](https://github.com/mementohub/exceptions)[ Packagist](https://packagist.org/packages/imemento/exceptions)[ Docs](https://gitlab.com/imemento/composer/packages/exceptions)[ RSS](/packages/imemento-exceptions/feed)WikiDiscussions v8.1.x Synced 2d ago

READMEChangelogDependencies (2)Versions (17)Used By (1)

iMemento HTTP Exceptions
========================

[](#imemento-http-exceptions)

[![Build Status](https://github.com/mementohub/exceptions/workflows/Testing/badge.svg)](https://github.com/mementohub/exceptions/actions)[![Latest Stable Version](https://camo.githubusercontent.com/95adc7e4a8b26bfdc835c471e9d11f08a92f10a4ede17e2c4f634bbd63b09697/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696d656d656e746f2f657863657074696f6e73)](https://packagist.org/packages/imemento/exceptions)[![License](https://camo.githubusercontent.com/8ad1cee995988dd729d5ce4b5f90072876f63b91e43d986cf77348b47d0ec646/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f696d656d656e746f2f657863657074696f6e73)](https://packagist.org/packages/imemento/exceptions)[![Total Downloads](https://camo.githubusercontent.com/a3381d4967c8a185df4edbc30615c95ea6c0be238eb5d88e965f91a25e2f8475/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696d656d656e746f2f657863657074696f6e73)](https://packagist.org/packages/imemento/exceptions)

This package provides some common exceptions to be used in all iMemento Services.

Install
-------

[](#install)

```
composer require imemento/exceptions
```

Usage
-----

[](#usage)

```
throw new ResourceException($message, $debug, $code, $previous);
```

All our exceptions that extend the HttpException class have a unique id, optional debug info and an error code. They will be mapped to a specific response from [http-responses](https://gitlab.com/imemento/composer/packages/http-responses) using our custom [error handler](https://gitlab.com/imemento/composer/packages/exceptions-laravel).

Errors
------

[](#errors)

ExceptionStatus CodeiMemento\\Exceptions\\Exception1000iMemento\\Exceptions\\InvalidTokenException1001iMemento\\Exceptions\\ExpiredAuthTokenException1002iMemento\\Exceptions\\ExpiredPermsTokenException1003iMemento\\Exceptions\\ExpiredConsumerTokenException1004iMemento\\Exceptions\\MissingTokenException1005iMemento\\Exceptions\\MissingRoleException1010iMemento\\Exceptions\\MissingSessionException1020iMemento\\Exceptions\\MissingParameterException1030iMemento\\Exceptions\\ResourceException1100iMemento\\Exceptions\\StoreResourceFailedException1101iMemento\\Exceptions\\UpdateResourceFailedException1102iMemento\\Exceptions\\DeleteResourceFailedException1103

###  Health Score

51

—

FairBetter than 95% of packages

Maintenance76

Regular maintenance activity

Popularity16

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity84

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 60.9% 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 ~193 days

Recently: every ~492 days

Total

16

Last Release

132d ago

Major Versions

5.8.0 → v6.0.x-dev2020-09-29

6.0.0 → v7.0.x-dev2020-09-29

7.0.0 → v8.0.x-dev2020-09-29

v8.1.0 → 12.0.02026-02-19

PHP version history (6 changes)5.6.0PHP ^7.1

v6.0.x-devPHP ^7.2

v7.0.x-devPHP ^7.2.5

v8.0.x-devPHP ^7.3

v8.1.x-devPHP ^8.0

12.0.0PHP ^8.2

### Community

Maintainers

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

---

Top Contributors

[![gxgstan](https://avatars.githubusercontent.com/u/3264036?v=4)](https://github.com/gxgstan "gxgstan (14 commits)")[![bcismariu](https://avatars.githubusercontent.com/u/10166477?v=4)](https://github.com/bcismariu "bcismariu (9 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M19.5k](/packages/laravel-framework)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k95.4M284](/packages/laravel-horizon)[illuminate/queue

The Illuminate Queue package.

21332.6M1.5k](/packages/illuminate-queue)[shopify/shopify-api

Shopify API Library for PHP

4655.2M21](/packages/shopify-shopify-api)[launchdarkly/server-sdk

Official LaunchDarkly SDK for PHP

3911.3M13](/packages/launchdarkly-server-sdk)[launchdarkly/launchdarkly-php

Official LaunchDarkly SDK for PHP

392.1M4](/packages/launchdarkly-launchdarkly-php)

PHPackages © 2026

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