Skip to content

Laminas MVC Retiring #40019

Open
Open
@nrdevau

Description

@nrdevau

Context

According to this article, Laminas MVC is retiring: https://getlaminas.org/blog/2025-06-06-laminas-mvc-is-retiring.html?trk=feed_main-feed-card_feed-article-content#content-how-to-migrate-from-laminas-mvc-to-mezzio

Problem

The main concern we're wanting to address is determining what MVC solution Magento will use post PHP 8.5.

Discussion

Some chatter from the community around this include:
https://www.linkedin.com/posts/trung-luu-09833232_laminas-project-laminas-mvc-is-retiring-activity-7341755577598910464-9xNW?utm_source=share&utm_medium=member_desktop&rcm=ACoAABGf_L4BCwByTcDebozZ-AnYnf6mphezrdc
https://magentocommeng.slack.com/archives/C4YS78WE6/p1750419803549029

Whether this impact is simply finding the few uses of Laminas/Mvc classes within the app (https://github.com/search?q=repo%3Amagento%2Fmagento2+%22Laminas%5CMvc%22&type=code) (thanks @sidolov) or whether we need to rethink how all model, view and controllers (the MVC part) are built and managed is a little unclear.

The usage of Laminas/Mvc is also around the bootstrapping of the application, so definitely a place that will have large impact regardless.

This issue is meant to aid in the community driven discussions that will happen alongside (before and probably after) the internal Adobe Magento decisions.

Alternatives (already raised)

  • Magento Framework implement the PSR-7, PSR-11 and PSR-15 specification
  • Magento could fork and maintain Laminas/Mvc code in the meantime

Additional Thoughts

  • Symfony controllers instead of Laminas ones? https://symfony.com/doc/current/controller.html
  • Magento controllers are not extensions of Laminas ones, which is good. This means this issue probably won't force all future Module devs to implement some new way of building routes and so on
  • Given that we have some pretty extensive testsuites built on core nowadays, we should be able to trial alternatives with confidence! (👍 for testing!)
  • Would the MFTF tests need to updated (if they're currently used?)

There are definitely others better placed to direct this discussion, but hopefully this is a good starting place.

Excited to see how Adobe and the community collaborate and "think" together! :)

Cheers,
Nate

Metadata

Metadata

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions