# Migrating from ZF 1.12 to Laminas mvc

**URL:** <https://discourse.laminas.dev/t/migrating-from-zf-1-12-to-laminas-mvc/2870>\
**Category:** Migration\
**Created:** [May 4, 2022, 9:12am UTC](https://discourse.laminas.dev/t/migrating-from-zf-1-12-to-laminas-mvc/2870 "2022-05-04T09:12:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wiiizz](https://avatars.discourse-cdn.com/v4/letter/w/e9bcb4/32.png) [@Wiiizz](https://discourse.laminas.dev/u/Wiiizz)\
**Post date:** [May 4, 2022, 9:12am UTC](https://discourse.laminas.dev/t/migrating-from-zf-1-12-to-laminas-mvc/2870/1 "2022-05-04T09:12:45Z")

</div>

Hello,

I currently have an application under ZF 1.12 (MVC pattern) with PHP 5.5.11 and I want to migrate to Laminas-mvc with PHP 8.0.

I plan to migrate to ZF 2.4.13 then to ZF 3.0 as indicated on the various official topics.

Should I temporarily migrate to ZF 2.7 before ZF 3.0 ?

Can I aim for version 3.3.3 directly from ZF 2.4.13 ?

Thank you in advance for your recommendations !

---

<div class="post-metadata">

**Author:** ![ocramius](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/ocramius/32/23_2.png) [@ocramius](https://discourse.laminas.dev/u/ocramius)\
**Post date:** [May 4, 2022, 9:38am UTC](https://discourse.laminas.dev/t/migrating-from-zf-1-12-to-laminas-mvc/2870/2 "2022-05-04T09:38:26Z")

</div>

Suggestion: do the easy changes first.

1. upgrade your PHP version **only** - ZF 1.12 should work OK up to PHP 7.3. Already getting here will take time/effort, but it’s a less daunting task.

2. switch to mezzio/mezzio, instead of going through the long (almost infinite) process of zend-mvc 2, then zend-mvc 3, then laminas-mvc 3 - it’s just not worth it.

---

<div class="post-metadata">

**Author:** ![Wiiizz](https://avatars.discourse-cdn.com/v4/letter/w/e9bcb4/32.png) [@Wiiizz](https://discourse.laminas.dev/u/Wiiizz)\
**Post date:** [May 4, 2022, 9:57am UTC](https://discourse.laminas.dev/t/migrating-from-zf-1-12-to-laminas-mvc/2870/3 "2022-05-04T09:57:21Z")

</div>

Thanks for your feedback !

Does a tutorial exist to migrate to Mezzio from ZF 1.X ?

---

<div class="post-metadata">

**Author:** ![froschdesign](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/froschdesign/32/38_2.png) [@froschdesign](https://discourse.laminas.dev/u/froschdesign)\
**Post date:** [May 4, 2022, 10:02am UTC](https://discourse.laminas.dev/t/migrating-from-zf-1-12-to-laminas-mvc/2870/4 "2022-05-04T10:02:31Z")

</div>

@Wiiizz  
Hello and welcome to our forums! 😃

The forum user @mtymek has published an example on GitHub of an integration between ZF1 and Mezzio (based on the old name “Zend Expressive”):

> **[GitHub - mtymek/zf1-to-expressive-migration: Example application to showcase...](https://github.com/mtymek/zf1-to-expressive-migration)**
>
> Example application to showcase integration between ZF1 and Zend Expressive - GitHub - mtymek/zf1-to-expressive-migration: Example application to showcase integration between ZF1 and Zend Expressive

This helps to migrate an application step by step.

---

<div class="post-metadata">

**Author:** ![Wiiizz](https://avatars.discourse-cdn.com/v4/letter/w/e9bcb4/32.png) [@Wiiizz](https://discourse.laminas.dev/u/Wiiizz)\
**Post date:** [May 4, 2022, 12:05pm UTC](https://discourse.laminas.dev/t/migrating-from-zf-1-12-to-laminas-mvc/2870/5 "2022-05-04T12:05:41Z")

</div>

Thank you for the link !

---

<div class="post-metadata">

**Author:** ![froschdesign](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/froschdesign/32/38_2.png) [@froschdesign](https://discourse.laminas.dev/u/froschdesign)\
**Post date:** [May 5, 2022, 12:24pm UTC](https://discourse.laminas.dev/t/migrating-from-zf-1-12-to-laminas-mvc/2870/6 "2022-05-05T12:24:06Z")

</div>

An article explaining a similar approach:

> **[Applying PSR-15 to refactoring of Legacy applications](https://medium.com/php-fad/applying-psr-15-to-refactoring-of-legacy-applications-94ca7ffbaedd)**
>
> Sometimes as PHP developers, we have to deal with legacy applications, in those cases, someone can propose to change a framework to a more…
