PHPackages                             kaninstein/laravel-app-errors - 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. [API Development](/categories/api)
4. /
5. kaninstein/laravel-app-errors

ActiveLibrary[API Development](/categories/api)

kaninstein/laravel-app-errors
=============================

Consistent API error contract (HTTP semantic) with request\_id and environment-aware debug payloads for Laravel.

v1.0.1(6mo ago)06MITPHPPHP ^8.2

Since Dec 16Pushed 6mo agoCompare

[ Source](https://github.com/kaninstein/laravel-app-errors)[ Packagist](https://packagist.org/packages/kaninstein/laravel-app-errors)[ RSS](/packages/kaninstein-laravel-app-errors/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (2)Versions (3)Used By (0)

kaninstein/laravel-app-errors
=============================

[](#kaninsteinlaravel-app-errors)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4f3459458ff17cc8209bd9478ee38ce6d477af9963dc0f28f2ee161301d119da/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b616e696e737465696e2f6c61726176656c2d6170702d6572726f72732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kaninstein/laravel-app-errors)[![Total Downloads](https://camo.githubusercontent.com/ff13fdda6de76afe84f4acec09b1e173cf87130f609e52e113a7b3654f60ae5f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b616e696e737465696e2f6c61726176656c2d6170702d6572726f72732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kaninstein/laravel-app-errors)[![License](https://camo.githubusercontent.com/34faad3aa767ea27a244ad74d26f08010a3edee7c2ef1d45900f3eaa13f9cef3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6b616e696e737465696e2f6c61726176656c2d6170702d6572726f72732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kaninstein/laravel-app-errors)

Consistent JSON error contract for Laravel APIs with:

- Semantic HTTP statuses (422/401/403/404/409/412/503/500)
- `request_id` propagation via middleware (`X-Request-Id`)
- Environment-aware `debug` payloads

Install
-------

[](#install)

```
composer require kaninstein/laravel-app-errors
```

Usage
-----

[](#usage)

Publish config:

```
php artisan vendor:publish --tag=app-errors-config
```

Add `Kaninstein\LaravelAppErrors\Http\Middleware\RequestIdMiddleware` to your API/web middleware stack and render JSON errors using `Kaninstein\LaravelAppErrors\Http\ExceptionMapper`.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance67

Regular maintenance activity

Popularity4

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

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

Total

2

Last Release

191d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/90076934?v=4)[João Pedro Coelho](/maintainers/kaninstein)[@kaninstein](https://github.com/kaninstein)

---

Tags

apierrors-handlinglaravel

### Embed Badge

![Health badge](/badges/kaninstein-laravel-app-errors/health.svg)

```
[![Health](https://phpackages.com/badges/kaninstein-laravel-app-errors/health.svg)](https://phpackages.com/packages/kaninstein-laravel-app-errors)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.6k3](/packages/defstudio-telegraph)[api-platform/laravel

API Platform support for Laravel

58171.4k14](/packages/api-platform-laravel)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1348.7k1](/packages/jasara-php-amzn-selling-partner-api)

PHPackages © 2026

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