Search by

floor9design / laravel-json-api-exceptions

elb98rm

Add easy to use extensible JSON:API errors in the Laravel framework

Package info

github.com/floor9design-ltd/laravel-json-api-exceptions

pkg:composer/floor9design/laravel-json-api-exceptions

Statistics

Installs: 9

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2026-11-29 16:21 UTC

This package is auto-updated.

Last update: 2026-11-29 17:31:53 UTC


README

Easily render Laravel API exceptions as consistent JSON:API error responses.

Latest Version Packagist Software License

Build Status

Github Downloads Packagist Downloads

Introduction

The JSON API has a precise response format. This set of classes allows these to be easily created and interrogated, meaning easy and reliable output/input processing.

The floor9design-ltd/json-api-formatter package offers a great way to automatically format these, easing the process significantly.

However, in real life development generic or system errors can be an afterthought and sometimes left out. This package offers a well-rounded boilerplate for the Laravel framework, so that these are taken care of in a few minutes.

It gives a shared exception renderer.

Features

  • Simple setup in Laravel
  • Easy use; simply throw an exception inside your Laravel logic and this will be caught and displayed professionally
  • Consistent JSON:API responses.
  • Standard responses for authentication, authorisation, validation and resource lookup failures.
  • Wide range of errors recognised

Requirements

The renderer uses JSON:API Formatter to build error documents.

Documentation

Project status

This README describes the planned first release. The package and linked guides are in development.

Credits

As always - a github watch/star and a follow is appreciated!