PHP Middleware

Open-source PHP projects categorized as Middleware

Top 23 PHP Middleware Projects

  1. laravel-caffeine

    Keeping Your Laravel Forms Awake.

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. soap-client

    A general purpose SOAP client for PHP

  4. dispatch

    a tiny library for quick and easy PHP apps (by noodlehaus)

  5. mezzio

    PSR-15 Middleware Microframework

  6. laravel-rate-limited-job-middleware

    A job middleware to rate limit jobs

  7. laravel-authz

    An authorization library that supports access control models like ACL, RBAC, ABAC in Laravel.

  8. Real-Time monitoring package for Laravel

    Code Execution Monitoring for Laravel applications

    Project mention: Monitoring Laravel Livewire Components | dev.to | 2025-09-11

    Inspector is a Code Execution Monitoring tool specifically designed for PHP developers. You don't need to install anything on the server level, just install the Laravel package and you are ready to go.

  9. JsonMapper

    Map nested JSON structures to PHP classes (by JsonMapper)

  10. request-migrations

    HTTP Request Migrations for API Versioning like Stripe

  11. chubbyphp-framework

    A minimal, highly performant middleware PSR-15 microframework built with as little complexity as possible, aimed primarily at those developers who want to understand all the vendors they use.

  12. authorization

    PSR7 Middleware for authorization

  13. Laminas Stratigility

    PSR-7 middleware foundation for building and dispatching middleware pipelines

  14. Laravel Permission Manager

    A comprehensive and advanced permission management system for Laravel applications. This package provides a robust role-based access control (RBAC) system with support for wildcard permissions, blade directives, Artisan commands, and a fluent API.

  15. atomic-locks-middleware

    A package designed to ensure that only one request is processed at a time.

  16. trailing-slash

    PSR-15 middleware to normalize the trailing slash of the uri path

  17. rate-limiter

    RateLimiter helps to prevent abuse by limiting the number of requests that could be me made consequentially.

  18. csrf

    PSR-15 middleware implementing CSRF protection (by yiisoft)

  19. request-callback

    ➰ Swoole request callback for PSR compliant handlers.

  20. laravel-threat-detection

    Passive threat detection middleware for Laravel. Logs SQL injection, XSS, RCE, bot scanners, 404 probes & 175+ attack patterns. Built-in dashboard, fail2ban export, Slack alerts, and REST API. IDS, not WAF.

    Project mention: I Built a Free WAF for Laravel — Here's How It Works | dev.to | 2026-03-03
  21. error-handler

    Framework independent advanced error handler

  22. Limber

    A super minimal HTTP framework that doesn't get in your way. (by nimbly)

  23. t3languageredirection

    This TYPO3 package provides a middleware that automatically redirects users to the preferred language URL based on their browser's Accept-Language header.

  24. bamise

    Bamise is a secure enterprise crud library that act like an automatic CRUD framework/library where developers only provide a form URL and minimal configuration.

    Project mention: Why I Built Bamise Instead of Using Laravel | dev.to | 2026-05-28

    Check Bamise out here

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

PHP Middleware discussion

Log in or Post with

PHP Middleware related posts

  • Monitoring Laravel Livewire Components

    1 project | dev.to | 11 Sep 2025
  • What are the more unknown frameworks you ever used?

    13 projects | /r/PHP | 17 Feb 2022
  • Php Base64 encode/decode – best practices and use cases

    1 project | dev.to | 15 Jan 2025
  • CodeIgniter Monitoring Library – Born from Understanding Real Developer Needs

    2 projects | dev.to | 10 Jan 2025
  • Create Histogram Charts With MySQL – Tutorial

    1 project | dev.to | 26 Aug 2024
  • PHP Iterators for walking through data structures – FastTips

    1 project | dev.to | 6 Aug 2024
  • Identifying Performance Issues in Laravel with Inspector

    1 project | dev.to | 26 Feb 2024
  • A note from our sponsor - SaaSHub
    www.saashub.com | 17 Jun 2026
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

What are some of the best open-source Middleware projects in PHP? This list will help you:

# Project Stars
1 laravel-caffeine 937
2 soap-client 889
3 dispatch 537
4 mezzio 388
5 laravel-rate-limited-job-middleware 356
6 laravel-authz 331
7 Real-Time monitoring package for Laravel 234
8 JsonMapper 219
9 request-migrations 184
10 chubbyphp-framework 135
11 authorization 74
12 Laminas Stratigility 57
13 Laravel Permission Manager 38
14 atomic-locks-middleware 34
15 trailing-slash 32
16 rate-limiter 30
17 csrf 27
18 request-callback 26
19 laravel-threat-detection 24
20 error-handler 22
21 Limber 20
22 t3languageredirection 2
23 bamise 1

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

Did you know that PHP is
the 14th most popular programming language
based on number of references?