# Migration ZF3 to Laminas

**URL:** <https://discourse.laminas.dev/t/migration-zf3-to-laminas/3240>\
**Category:** Migration\
**Created:** [March 14, 2023, 10:02am UTC](https://discourse.laminas.dev/t/migration-zf3-to-laminas/3240 "2023-03-14T10:02:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lon9man](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/lon9man/32/1314_2.png) [@lon9man](https://discourse.laminas.dev/u/lon9man)\
**Post date:** [March 14, 2023, 10:02am UTC](https://discourse.laminas.dev/t/migration-zf3-to-laminas/3240/1 "2023-03-14T10:02:19Z")

</div>

Hello, trying to migrate ZF3 to Laminas

run `laminas-migration migrate` and received the error:

```auto
This command REMOVES your composer.lock file and vendor directory; do you wish to continue?y

Migrating project at path "/home/xxxxxx/app" to Laminas
============================================================

Removing composer.lock
Removing configured vendor directory
Injecting laminas-dependency-plugin into composer.json
Performing migration replacements

In ComposerJsonZendFrameworkPackageSpecialCase.php line 118:
                                                                                                 
  Discovered unknown zendframework/zendframework constraint "3.1.x-dev"; cannot replace package 

```

what is the next possible steps?

thanks!

---

<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:** [March 14, 2023, 10:19am UTC](https://discourse.laminas.dev/t/migration-zf3-to-laminas/3240/2 "2023-03-14T10:19:45Z")

</div>

> [@lon9man](#):
>
> what is the next possible steps?

Can you provide the content of the `composer.json` file before running the migration?

---

<div class="post-metadata">

**Author:** ![lon9man](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/lon9man/32/1314_2.png) [@lon9man](https://discourse.laminas.dev/u/lon9man)\
**Post date:** [March 14, 2023, 10:33am UTC](https://discourse.laminas.dev/t/migration-zf3-to-laminas/3240/3 "2023-03-14T10:33:29Z")

</div>

```auto
"zendframework/zendframework": "3.1.x-dev",

```

i reviewed sources  
`ComposerJsonZendFrameworkPackageSpecialCase.php line 118:`  
and found the issue:  
it is possible to migrate from `3.0.0` version.

so i downgraded the dependency and run `laminas-migration migrate` one more time.

thanks! topic can be closed

---

<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:** [March 14, 2023, 10:37am UTC](https://discourse.laminas.dev/t/migration-zf3-to-laminas/3240/4 "2023-03-14T10:37:40Z")

</div>

The change to an officially released version should work.

Thanks for the feedback! 👍🏻
