# \#mezzio

**URL:** https://discourse.laminas.dev/tag/mezzio/48.md

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

---

## [Contenir\\Mail (formerly Laminas\\Mail)](https://discourse.laminas.dev/t/contenir-mail-formerly-laminas-mail/4158)

<div class="topic-metadata">

**Author:** [@simon-mundy](https://discourse.laminas.dev/u/simon-mundy)\
**Replies:** 1\
**Last updated:** [October 21, 2026, 2:41am UTC](https://discourse.laminas.dev/t/contenir-mail-formerly-laminas-mail/4158 "2026-10-21T02:41:31Z")

</div>

Hi everyone. I’d like to announce the pre-release version of Contenir Mail for anyone interested. As Laminas Mail was abandoned, and I actually liked using it, I set about updating it. It keeps the full Git history back…

---

## [AI Agent Skills for Laminas and Mezzio Development](https://discourse.laminas.dev/t/ai-agent-skills-for-laminas-and-mezzio-development/4046)

<div class="topic-metadata">

**Author:** [@voltan](https://discourse.laminas.dev/u/voltan)\
**Replies:** 7\
**Last updated:** [September 28, 2026, 10:23am UTC](https://discourse.laminas.dev/t/ai-agent-skills-for-laminas-and-mezzio-development/4046 "2026-09-28T10:23:03Z")

</div>

I think it could be useful to have a small set of AI agent skills focused on Laminas and Mezzio development. For example, one skill could help with migrating existing Laminas MVC modules to Mezzio. It could first analyz…

---

## [API - Embed object in collection? - mezzio-hal](https://discourse.laminas.dev/t/api-embed-object-in-collection-mezzio-hal/1879)

<div class="topic-metadata">

**Author:** [@MichaelB](https://discourse.laminas.dev/u/MichaelB)\
**Replies:** 5\
**Last updated:** [November 30, 2025, 12:23pm UTC](https://discourse.laminas.dev/t/api-embed-object-in-collection-mezzio-hal/1879 "2025-11-30T12:23:32Z")

</div>

Hi, I try to develop a API Rest service with mezzio and have a problem. I used https://github.com/ezimuel/zend-expressive-api from @enrico that i migrated to Mezzio for my base of structure and testing. I have a Produ…

---

## [How to create module in module.config.php file?](https://discourse.laminas.dev/t/how-to-create-module-in-module-config-php-file/3860)

<div class="topic-metadata">

**Author:** [@eguvenc](https://discourse.laminas.dev/u/eguvenc)\
**Replies:** 1\
**Last updated:** [March 4, 2025, 10:53am UTC](https://discourse.laminas.dev/t/how-to-create-module-in-module-config-php-file/3860 "2025-03-04T10:53:46Z")

</div>

I downloaded the mezzio latest version. I register modules using below the command. After that the creation i could not see the module name in my module.config.php. Is this normal ? Do i have to do it by mannually ? com…

---

## [Prevent Route Parameter Translation in Mezzio with Laminas\\I18n Integration](https://discourse.laminas.dev/t/prevent-route-parameter-translation-in-mezzio-with-laminas-i18n-integration/3822)

<div class="topic-metadata">

**Author:** [@sanjivsharmalv](https://discourse.laminas.dev/u/sanjivsharmalv)\
**Replies:** 2\
**Last updated:** [December 17, 2024, 1:43pm UTC](https://discourse.laminas.dev/t/prevent-route-parameter-translation-in-mezzio-with-laminas-i18n-integration/3822 "2024-12-17T13:43:29Z")

</div>

I am encountering an issue where the route parameter in my Mezzio application seems to be causing errors due to unintended translation behavior. Here is my route configuration for editing a Locale: // Edit Locale Route…

---

## [Best Practice: Laminas MVC vs Mezzio vs DotKernel API](https://discourse.laminas.dev/t/best-practice-laminas-mvc-vs-mezzio-vs-dotkernel-api/3784)

<div class="topic-metadata">

**Author:** [@COMCDUARTE](https://discourse.laminas.dev/u/COMCDUARTE)\
**Replies:** 3\
**Last updated:** [October 8, 2024, 1:17pm UTC](https://discourse.laminas.dev/t/best-practice-laminas-mvc-vs-mezzio-vs-dotkernel-api/3784 "2024-10-08T13:17:45Z")

</div>

I’m interested in everyone’s opinion on the matter. Here’s a brief of my use case. I develop a variety of applications. All of which require a frontend, which Laminas MVC ( and ZF2 & ZF3) has handled solely thus far. …

---

## [Doctrine migrations in Mezzio](https://discourse.laminas.dev/t/doctrine-migrations-in-mezzio/3700)

<div class="topic-metadata">

**Author:** [@sanjivsharmalv](https://discourse.laminas.dev/u/sanjivsharmalv)\
**Replies:** 2\
**Last updated:** [June 9, 2024, 6:06am UTC](https://discourse.laminas.dev/t/doctrine-migrations-in-mezzio/3700 "2024-06-09T06:06:06Z")

</div>

As we do not have modules structure of MVC framework, the traditional command of doctrine CLI no longer work in Mezzio. In that case how do we go ahead with migrations?

---

## [Laminas routing for controller route not working](https://discourse.laminas.dev/t/laminas-routing-for-controller-route-not-working/3489)

<div class="topic-metadata">

**Author:** [@Aleksandr\_Zamiatin](https://discourse.laminas.dev/u/Aleksandr_Zamiatin)\
**Replies:** 3\
**Last updated:** [October 6, 2023, 10:57am UTC](https://discourse.laminas.dev/t/laminas-routing-for-controller-route-not-working/3489 "2023-10-06T10:57:46Z")

</div>

I’m trying to add new controller and routes for it in laminas, I have some stracture of module like this: https://i.stack.imgur.com/tOts6.png ConfigProvider contains: \<?php declare(strict\_types=1); namespace RoleApi;…

---

## [Partial in Mezzio](https://discourse.laminas.dev/t/partial-in-mezzio/2903)

<div class="topic-metadata">

**Author:** [@Kriss\_Kals](https://discourse.laminas.dev/u/Kriss_Kals)\
**Replies:** 2\
**Last updated:** [June 1, 2022, 8:44pm UTC](https://discourse.laminas.dev/t/partial-in-mezzio/2903 "2022-06-01T20:44:30Z")

</div>

Hello, normally in Laminas MVC I use layout helper partial in my templates to separate the header or footer code. However in mezzio this option doesn’t work. How can I add some code from separate .phtml files to the mai…

---

## [Receive stream of messages in Swoole server](https://discourse.laminas.dev/t/receive-stream-of-messages-in-swoole-server/2685)

<div class="topic-metadata">

**Author:** [@rafei](https://discourse.laminas.dev/u/rafei)\
**Replies:** 0\
**Last updated:** [December 29, 2021, 1:19pm UTC](https://discourse.laminas.dev/t/receive-stream-of-messages-in-swoole-server/2685 "2021-12-29T13:19:41Z")

</div>

How the swoole server should be prepared to receive stream of messages of a grpc stream-unary request?

---

## [OAuth2 error in Mezzio](https://discourse.laminas.dev/t/oauth2-error-in-mezzio/2302)

<div class="topic-metadata">

**Author:** [@mh\_sam](https://discourse.laminas.dev/u/mh_sam)\
**Replies:** 5\
**Last updated:** [December 29, 2021, 6:49pm UTC](https://discourse.laminas.dev/t/oauth2-error-in-mezzio/2302 "2021-12-29T18:49:42Z")

</div>

hi everyone, i’m using mezzio for api and chose OAuth2 for authentication when send user info to TokenEndpointHandler for request token, ( grant\_type = password) reterun this error: { “error”: “access\_token\_duplica…

---

## [Handling gRPC requests with client-stream and server-stream modes](https://discourse.laminas.dev/t/handling-grpc-requests-with-client-stream-and-server-stream-modes/2683)

<div class="topic-metadata">

**Author:** [@rafei](https://discourse.laminas.dev/u/rafei)\
**Replies:** 0\
**Last updated:** [December 29, 2021, 7:09am UTC](https://discourse.laminas.dev/t/handling-grpc-requests-with-client-stream-and-server-stream-modes/2683 "2021-12-29T07:09:19Z")

</div>

When a request is arrived, swoole onRequest event is triggered and EventDispatcher dispatches the event to the relevant event which in this case is RequestEvent. Then, RequestHandlerRequestListener converts the swoole re…

---

## [Request guidance and advice](https://discourse.laminas.dev/t/request-guidance-and-advice/2644)

<div class="topic-metadata">

**Author:** [@voltan](https://discourse.laminas.dev/u/voltan)\
**Replies:** 9\
**Last updated:** [December 9, 2021, 1:50pm UTC](https://discourse.laminas.dev/t/request-guidance-and-advice/2644 "2021-12-09T13:50:15Z")

</div>

Hello everyone We worked on CMS/Platform based on ZF2/ Laminas MVC that called Pi Engine, check it on : GitHub - pi-engine/pi: Multi-tenant application development engine for cloud ready SaaS platform. We started Pi 10…

---

## [Mezzio-csrf not working](https://discourse.laminas.dev/t/mezzio-csrf-not-working/2517)

<div class="topic-metadata">

**Author:** [@mh\_sam](https://discourse.laminas.dev/u/mh_sam)\
**Replies:** 0\
**Last updated:** [September 24, 2021, 12:43pm UTC](https://discourse.laminas.dev/t/mezzio-csrf-not-working/2517 "2021-09-24T12:43:55Z")

</div>

hi everyone this is my code to use mezzio-csrf : //myHandler.php public function handle(ServerRequestInterface $request) : ResponseInterface { $guard = $request-\>getAttribute(CsrfMiddleware::GUARD\_ATTRIBUTE); …

---

## [How to use Filesystem Cache in Mezzio?](https://discourse.laminas.dev/t/how-to-use-filesystem-cache-in-mezzio/2190)

<div class="topic-metadata">

**Author:** [@drakulitka](https://discourse.laminas.dev/u/drakulitka)\
**Replies:** 2\
**Last updated:** [March 17, 2021, 10:43am UTC](https://discourse.laminas.dev/t/how-to-use-filesystem-cache-in-mezzio/2190 "2021-03-17T10:43:57Z")

</div>

namespace Auth\\Service\\Factory; use Auth\\Service\\RbacManager; use Doctrine\\ORM\\EntityManager; use Laminas\\Cache\\Storage\\Adapter\\Filesystem; use Laminas\\Cache\\Storage\\Plugin\\ExceptionHandler; use Laminas\\Cache\\Storage\\Pl…

---

## [How to use InputFilter in middleware Mezzio?](https://discourse.laminas.dev/t/how-to-use-inputfilter-in-middleware-mezzio/2146)

<div class="topic-metadata">

**Author:** [@hangouh](https://discourse.laminas.dev/u/hangouh)\
**Replies:** 3\
**Last updated:** [March 2, 2021, 8:41am UTC](https://discourse.laminas.dev/t/how-to-use-inputfilter-in-middleware-mezzio/2146 "2021-03-02T08:41:18Z")

</div>

Hi guys! I’m trying to make a middleware with InputFilter in mezzio however I have had the following error: “Unable to resolve service “App\\InputFilter\\UserInputFilter” to a factory; are you certain you provided it duri…

---

## [Prismic + Mezzio = "Primo" - Headless CMS Bootstrap Project](https://discourse.laminas.dev/t/prismic-mezzio-primo-headless-cms-bootstrap-project/1674)

<div class="topic-metadata">

**Author:** [@george](https://discourse.laminas.dev/u/george)\
**Replies:** 0\
**Last updated:** [June 17, 2020, 8:22pm UTC](https://discourse.laminas.dev/t/prismic-mezzio-primo-headless-cms-bootstrap-project/1674 "2020-06-17T20:22:06Z")

</div>

I’ve been using Prismic - (prismic.io) for a few years now to build content managed websites for clients with ZF2, Expressive and then Mezzio. There’s a lot of boilerplate involved when starting a new website, so I’ve re…

---

## [How to display a custom error page for HTTP status 405 (method not allowed) and etc?](https://discourse.laminas.dev/t/how-to-display-a-custom-error-page-for-http-status-405-method-not-allowed-and-etc/1664)

<div class="topic-metadata">

**Author:** [@nepster-web](https://discourse.laminas.dev/u/nepster-web)\
**Replies:** 3\
**Last updated:** [June 12, 2020, 2:32pm UTC](https://discourse.laminas.dev/t/how-to-display-a-custom-error-page-for-http-status-405-method-not-allowed-and-etc/1664 "2020-06-12T14:32:02Z")

</div>

How Can I customize custom pages template for errors?

---

## [\[RFC\] Opcache Preloading for Mezzio and MVC](https://discourse.laminas.dev/t/rfc-opcache-preloading-for-mezzio-and-mvc/1442)

<div class="topic-metadata">

**Author:** [@matthew](https://discourse.laminas.dev/u/matthew)\
**Replies:** 3\
**Last updated:** [April 24, 2020, 2:43pm UTC](https://discourse.laminas.dev/t/rfc-opcache-preloading-for-mezzio-and-mvc/1442 "2020-04-24T14:43:50Z")

</div>

Goal Provide a mechanism for seeding the opcache preloading capabilities of PHP for: MVC and API Tools applications Mezzio applications Background PHP 7.4 introduces the opcache.preload setting and the opcache\_compile…

---

## [Benchmarking laminas](https://discourse.laminas.dev/t/benchmarking-laminas/1450)

<div class="topic-metadata">

**Author:** [@waghanza](https://discourse.laminas.dev/u/waghanza)\
**Replies:** 0\
**Last updated:** [March 18, 2020, 2:21pm UTC](https://discourse.laminas.dev/t/benchmarking-laminas/1450 "2020-03-18T14:21:25Z")

</div>

Hello, I have migrate zend-framework and zend-expressive to laminas and mezzio in my benchmarking project Feel free to contribute :heart: and to correct the code (if any mistake) Regards,
