middlewares/utils
Common utilities for Middlewares PSR packages: auto-discovered PSR-7/PSR-17 Factory (Diactoros, Guzzle, Slim, Nyholm, Sunrise) plus PSR-15 Dispatcher for testing, callable handler helpers, and HTTP error exceptions.
|
Package
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|
| franzl/whoops-middleware | PSR-15 middleware that drops the Whoops error handler into any middleware pipeline, turning uncaught exceptions into rich, stack-trace-friendly debug pages during development while staying out of the way in production. | 27 | 29 | 10 | 85K | 0 | 0.7 | 48.1 | MIT | 5 years ago | |
| middlewares/base-path | A small Laravel middleware package for apps served from a subdirectory. It helps normalize the base path so routes, redirects, and generated URLs work correctly behind a path prefix, with simple middleware registration and minimal setup. | 3 | 3 | 0 | 131K | 0 | 0.0 | 55.3 | MIT | 1 year ago | |
| middlewares/base-path-router | Laravel middleware for routing applications from a configurable base path, making subdirectory deployments easier without rewriting route definitions. Helps keep route matching and URL generation consistent. | 4 | — | 0 | — | 0 | 0.0 | — | MIT | 1 year ago |
|
| middlewares/client-ip | A Laravel middleware for reliably resolving the client's real IP address, including requests passing through proxies, load balancers, and CDNs. Supports forwarded headers and configurable trusted proxies for accurate IP detection. | 16 | — | 8 | — | 1 | 0.4 | — | MIT | 1 year ago |
|
| middlewares/fast-route | PSR-15 middleware that integrates FastRoute for route matching and handler discovery. Adds the matched handler and route parameters as request attributes, and can generate 404/405 responses via a PSR-17 response factory (auto-detected by default). | 94 | 98 | 7 | 5K | 0 | 5.5 | 23.4 | MIT | 1 year ago | |
| middlewares/firewall | — | 12 | — | 4 | — | 1 | 0.3 | — | MIT | 1 year ago |
|
| middlewares/negotiation | — | 46 | — | 3 | — | 0 | 0.3 | — | MIT | 1 year ago |
|
| middlewares/payload | — | 31 | — | 5 | — | 0 | 0.3 | — | MIT | 1 year ago |
|
| middlewares/request-handler | PSR-15/PSR-7 request handler middleware for PHP. Build a flexible pipeline that routes an incoming ServerRequest to your handler stack, with clean delegation and composable middlewares—ideal for frameworks or custom apps needing standard request processing. | 43 | 46 | 5 | 71K | 0 | 4.9 | 44.3 | MIT | 1 year ago | |
| middlewares/trailing-slash | Laravel middleware that normalizes trailing slashes by redirecting URLs to your preferred format, with configurable behavior, query-string preservation, and clean handling of requests that already match. | 32 | 34 | 2 | 17K | 0 | 0.2 | 37.6 | MIT | 1 year ago | |
| odan/session | Odan/session is a session middleware for Slim and other PSR-15 applications. It provides a clean SessionInterface for reading and writing session data, flash messages, configurable session handlers, and straightforward PHP-DI integration for Slim 4. | 65 | 65 | 12 | 10K | 1 | 6.1 | 31.5 | MIT | 8 months ago |
How can I help you explore Laravel packages today?