PHPackages                             laminas/laminas-migration - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. laminas/laminas-migration

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

laminas/laminas-migration
=========================

Migrate a Zend Framework project or third-party library to target Laminas/Expressive/Apigility

1.5.0(3y ago)6058.3k↓39.7%7[2 issues](https://github.com/laminas/laminas-migration/issues)[6 PRs](https://github.com/laminas/laminas-migration/pulls)6BSD-3-ClausePHPPHP ~8.0.0 || ~8.1.0 || ~8.2.0

Since Oct 30Pushed 2mo ago13 watchersCompare

[ Source](https://github.com/laminas/laminas-migration)[ Packagist](https://packagist.org/packages/laminas/laminas-migration)[ Fund](https://funding.communitybridge.org/projects/laminas-project)[ RSS](/packages/laminas-laminas-migration/feed)WikiDiscussions 1.6.x Synced 2d ago

READMEChangelog (10)Dependencies (8)Versions (40)Used By (6)

laminas-migration
=================

[](#laminas-migration)

> ## 🇷🇺 Русским гражданам
>
> [](#-русским-гражданам)
>
> Мы, участники Laminas, родились и живем в разных странах. У многих из нас есть друзья, родственники и коллеги как в России, так и в Украине. Некоторые из нас родились в России. Некоторые из нас живут в России. У некоторых бабушки и дедушки сражались с фашистами во Второй мировой войне. Здесь никто не поддерживает фашизм.
>
> У одного из нас есть украинская родственница, которая спаслась из дома вместе с сыном. Поезд задержался из-за бомбежки на дороге впереди. У нас есть друзья, которые прячутся в бомбоубежищах. Мы с тревогой ждем весточки от них после воздушных налетов, которые беспорядочно наносят удары и попадают по больницам, школам, детским садам и домам. Мы не берем это из каких-либо СМИ. Мы наблюдаем это напрямую.
>
> Вы доверяете нам достаточно, чтоб использовать наши программы, и мы просим вас довериться нам вновь. Мы нуждаемся в помощи. Выходите и протестуйте против этой бесполезной войны. Остановите кровопролитие. Скажите "Нет войне!"
>
> ## 🇺🇸 To Citizens of Russia
>
> [](#-to-citizens-of-russia)
>
> We at Laminas come from all over the world. Many of us have friends, family and colleagues in both Russia and Ukraine. Some of us were born in Russia. Some of us currently live in Russia. Some have grandparents who fought Nazis in World War II. Nobody here supports fascism.
>
> One team member has a Ukrainian relative who fled her home with her son. The train was delayed due to bombing on the road ahead. We have friends who are hiding in bomb shelters. We anxiously follow up on them after the air raids, which indiscriminately fire at hospitals, schools, kindergartens and houses. We're not taking this from any media. These are our actual experiences.
>
> You trust us enough to use our software. We ask that you trust us to say the truth on this. We need your help. Go out and protest this unnecessary war. Stop the bloodshed. Say "stop the war!"

Migrate a Zend Framework project or third-party library to target Laminas, Expressive, and/or Apigility.

This tool will migrate:

- Zend Framework MVC projects, all v2 and v3 releases.
- Apigility projects, all versions
- Expressive versions, all versions

For more details, please read the [documentation](https://docs.laminas.dev/migration/) and [FAQ](https://docs.laminas.dev/migration/faq/).

Installation
------------

[](#installation)

### Via Composer

[](#via-composer)

Install the library globally using [Composer](https://getcomposer.org):

```
$ composer global require laminas/laminas-migration
```

### Via cloning

[](#via-cloning)

Clone the repository somewhere:

```
$ git clone https://github.com/laminas/laminas-migration.git
```

Install dependencies:

```
$ cd laminas-migration
$ composer install
```

From there, either add the `bin/` directory to your `$PATH`, symlink the `bin/laminas-migration` script to a directory in your `$PATH`, or create an alias to the `bin/laminas-migration` script using your shell:

```
# Adding to PATH:
$ export PATH=/path/to/laminas-migration/bin:$PATH
# Symlinking to a directory in your PATH:
$ cd $HOME/bin && ln -s /path/to/laminas-migration/bin/laminas-migration .
# creating an alias:
$ alias laminas-migration=/path/to/laminas-migration/bin/laminas-migration
```

Usage
-----

[](#usage)

### Migrating a library or project

[](#migrating-a-library-or-project)

To migrate a library or project to Laminas, use the `migrate` command:

```
$ laminas-migration migrate [--no-plugin] [--exclude=|-e=] [--keep-locked-versions] [path]
```

where:

- `[path]` is the path to the project you want to migrate; if omitted, the command assumes the current working directory.
- `[--no-plugin]` can be specified to omit adding the Composer plugin [laminas/laminas-dependency-plugin](https://github.com/laminas/laminas-dependency-plugin)to your library or project. We do not recommend using this option; the plugin ensures that any nested dependencies on Zend Framework packages will instead install the Laminas variants. There are very few cases where this behavior is not desired.
- `[--exclude=|-e=]` can be used multiple times to specify *directories* to omit from the migration. Examples might include your `data/` or `cache/`directories.
- `[--keep-locked-versions]` will synchronize your `composer.json` with the `composer.lock` packages before the migration starts. This will ensure that your projects stays on the same versions even after deleting the lock-file. Thus, after running `composer install` (after the migration finished, you can manually re-configure your `composer.json` again by using a diff-tool) and updating the `composer.lock` by just using `composer update --lock`. This wont trigger any update but refreshes the `composer.lock` to be back in sync with the `composer.json` again. **Please note that we encourage to upgrade to the latest versions to avoid unexpected issues. If you experiencing issues after migration while using this flag we cannot offer support.**

When done, you can check to see what files were changed, and examine the `composer.json`. Run `composer install` to install dependencies, and then test your application.

### Forcing nested dependencies to resolve to Laminas packages

[](#forcing-nested-dependencies-to-resolve-to-laminas-packages)

If you use the `--no-plugin` option to the `migrate` command, you can migrate nested dependencies manually using the `nested-deps` command:

```
$ laminas-migration nested-deps [path] [--composer=composer]
```

where:

- `[path]` is the path to the project for which you want to perform the operation; if omitted, the command assumes the current working directory.
- `--composer` allows you to provide a custom path to the `composer` binary.

This will be a one-off operation. If you add dependencies later, or perform a `composer update`, you may need to re-run it.

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance57

Moderate activity, may be stable

Popularity43

Moderate usage in the ecosystem

Community30

Small or concentrated contributor base

Maturity83

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~54 days

Recently: every ~174 days

Total

33

Last Release

695d ago

Major Versions

0.2.3 → 1.0.02019-12-31

PHP version history (4 changes)0.1.0PHP ^5.6 || ^7.0

1.3.0PHP ^7.3 || ~8.0.0

1.4.0PHP ^7.4 || ~8.0.0 || ~8.1.0

1.5.0PHP ~8.0.0 || ~8.1.0 || ~8.2.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/25943?v=4)[Matthew Weier O'Phinney](/maintainers/weierophinney)[@weierophinney](https://github.com/weierophinney)

---

Top Contributors

[![weierophinney](https://avatars.githubusercontent.com/u/25943?v=4)](https://github.com/weierophinney "weierophinney (153 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (75 commits)")[![michalbundyra](https://avatars.githubusercontent.com/u/7423207?v=4)](https://github.com/michalbundyra "michalbundyra (62 commits)")[![ghostwriter](https://avatars.githubusercontent.com/u/9754361?v=4)](https://github.com/ghostwriter "ghostwriter (11 commits)")[![boesing](https://avatars.githubusercontent.com/u/2189546?v=4)](https://github.com/boesing "boesing (8 commits)")[![tux-rampage](https://avatars.githubusercontent.com/u/558326?v=4)](https://github.com/tux-rampage "tux-rampage (6 commits)")[![Ocramius](https://avatars.githubusercontent.com/u/154256?v=4)](https://github.com/Ocramius "Ocramius (6 commits)")[![jeger-at](https://avatars.githubusercontent.com/u/11678629?v=4)](https://github.com/jeger-at "jeger-at (5 commits)")[![geerteltink](https://avatars.githubusercontent.com/u/9497586?v=4)](https://github.com/geerteltink "geerteltink (5 commits)")[![laminas-bot](https://avatars.githubusercontent.com/u/68250880?v=4)](https://github.com/laminas-bot "laminas-bot (3 commits)")[![Xerkus](https://avatars.githubusercontent.com/u/725842?v=4)](https://github.com/Xerkus "Xerkus (2 commits)")[![marioradu05](https://avatars.githubusercontent.com/u/10761919?v=4)](https://github.com/marioradu05 "marioradu05 (1 commits)")[![achevillard](https://avatars.githubusercontent.com/u/4919665?v=4)](https://github.com/achevillard "achevillard (1 commits)")

---

Tags

apigilityexpressivelaminaslaminas-api-toolslaminas-migrationmezziomigrationzendframework

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/laminas-laminas-migration/health.svg)

```
[![Health](https://phpackages.com/badges/laminas-laminas-migration/health.svg)](https://phpackages.com/packages/laminas-laminas-migration)
```

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.5k196.2M3.1k](/packages/composer-composer)[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k251.2M25.2k](/packages/friendsofphp-php-cs-fixer)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

21866.0M1.7k](/packages/drupal-core)[phpactor/phpactor

PHP refactoring and intellisense tool for text editors

1.9k17.1k1](/packages/phpactor-phpactor)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
