# \#laminas-mvc-middleware

**URL:** https://discourse.laminas.dev/tag/laminas-mvc-middleware/101.md

[Latest](https://discourse.laminas.dev/latest.md) · [Categories](https://discourse.laminas.dev/categories.md) · [Tags](https://discourse.laminas.dev/tags.md)

---

## [MVC-Middleware with Renderer](https://discourse.laminas.dev/t/mvc-middleware-with-renderer/3879)

<div class="topic-metadata">

**Author:** [@mimmi20](https://discourse.laminas.dev/u/mimmi20)\
**Replies:** 1\
**Last updated:** [March 26, 2025, 6:29pm UTC](https://discourse.laminas.dev/t/mvc-middleware-with-renderer/3879 "2025-03-26T18:29:39Z")

</div>

Does anyone has an Example of an MVC-Middleware with a PHP Renderer?

---

## [Middleware with Controller Action](https://discourse.laminas.dev/t/middleware-with-controller-action/3225)

<div class="topic-metadata">

**Author:** [@lon9man](https://discourse.laminas.dev/u/lon9man)\
**Replies:** 12\
**Last updated:** [March 3, 2023, 11:33am UTC](https://discourse.laminas.dev/t/middleware-with-controller-action/3225 "2023-03-03T11:33:25Z")

</div>

@voltan, found your topic The process of using the Middleware - #3 by xerkus did you find applicable way? @ocramius, i have legacy app on ZF2, which i upgraded to ZF3. simple flow for middleware for 1 route: 1. requ…

---

## [The process of using the Middleware](https://discourse.laminas.dev/t/the-process-of-using-the-middleware/2746)

<div class="topic-metadata">

**Author:** [@voltan](https://discourse.laminas.dev/u/voltan)\
**Replies:** 6\
**Last updated:** [March 2, 2023, 7:12am UTC](https://discourse.laminas.dev/t/the-process-of-using-the-middleware/2746 "2023-03-02T07:12:42Z")

</div>

Hello everyone I read the MVC-Middleware document and run simple middleware to check user authentication. First, I understand, after running the middleware step in the next step handler should run as a single action co…

---

## [Question about router, Middleware and handler](https://discourse.laminas.dev/t/question-about-router-middleware-and-handler/2813)

<div class="topic-metadata">

**Author:** [@voltan](https://discourse.laminas.dev/u/voltan)\
**Replies:** 0\
**Last updated:** [March 14, 2022, 6:19am UTC](https://discourse.laminas.dev/t/question-about-router-middleware-and-handler/2813 "2022-03-14T06:19:49Z")

</div>

Hello I worked on some modules via laminas MVC and Middleware, I needed some parameters like validator name for request or permission for each handler to manage RBAC and same. I put all of them in route default options…

---

## [How do I integrate laminas-mvc-middleware with API Tools](https://discourse.laminas.dev/t/how-do-i-integrate-laminas-mvc-middleware-with-api-tools/2768)

<div class="topic-metadata">

**Author:** [@sanjivsharmalv](https://discourse.laminas.dev/u/sanjivsharmalv)\
**Replies:** 2\
**Last updated:** [February 11, 2022, 1:52pm UTC](https://discourse.laminas.dev/t/how-do-i-integrate-laminas-mvc-middleware-with-api-tools/2768 "2022-02-11T13:52:28Z")

</div>

My problem statement is - I want to check if the Request has JWT token, if it has the token and the token is valid I want to pass the Request to the corresponding REST API. My plan is to use Laminas MVC Middleware for th…

---

## [Middleware with id \*\*\* could not be found in container](https://discourse.laminas.dev/t/middleware-with-id-could-not-be-found-in-container/2730)

<div class="topic-metadata">

**Author:** [@voltan](https://discourse.laminas.dev/u/voltan)\
**Replies:** 8\
**Last updated:** [January 28, 2022, 1:56pm UTC](https://discourse.laminas.dev/t/middleware-with-id-could-not-be-found-in-container/2730 "2022-01-28T13:56:05Z")

</div>

Hello I try to add Middleware in my tested module, for get and check request token, but I have this error Additional information: Laminas\\Mvc\\Middleware\\InvalidMiddlewareException File: /var/www/html/local/lamina…
