per-seo / httphtmlexception
HTTP Exception for Slim 4. This Middleware show an html page when a 404 Not Found occours
Installs: 23
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/per-seo/httphtmlexception
Requires
- php: >=7.4
 - psr/http-server-middleware: ^1
 
Requires (Dev)
- friendsofphp/php-cs-fixer: >=2
 - overtrue/phplint: ^2
 - php-di/php-di: >=6.4
 - phpstan/phpstan: ^2.1
 - phpunit/phpunit: ^11.4
 - slim/psr7: ^1
 - slim/slim: ^4
 - slim/twig-view: >=3.0
 - squizlabs/php_codesniffer: ^3
 
README
A simple middleware for Slim4 framework that show a page 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\Html\HttpExceptionMiddleware;
$app->add(HttpExceptionMiddleware::class);
After this, your Slim 4 project returns an html page for 404 Not Found.