per-seo/httpjsonexception

HTTP Exception for Slim 4. This Middleware print a JSON when a 404 Not Found occours

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/per-seo/httpjsonexception

1.0 2025-08-01 15:20 UTC

This package is auto-updated.

Last update: 2025-10-01 15:51:52 UTC


README

A simple middleware for Slim4 framework that print JSON message for 404 Not Found. Usage is very simple, just enable this Middleware (in the Middleware part of your Slim4 Project) with:

<?php

use PerSeo\Middleware\HttpException\Json\HttpExceptionMiddleware;

$app->add(HttpExceptionMiddleware::class);

After this, your Slim 4 project returns a JSON message for 404 Not Found.