{"id":28495603,"url":"https://github.com/laminas/laminas-migration","last_synced_at":"2025-07-02T10:31:44.312Z","repository":{"id":35612213,"uuid":"218595611","full_name":"laminas/laminas-migration","owner":"laminas","description":"Migrate Zend Framework MVC applications, Expressive applications, Apigility applications, or third-party libraries to target Laminas.","archived":false,"fork":false,"pushed_at":"2025-06-26T16:34:24.000Z","size":440,"stargazers_count":60,"open_issues_count":8,"forks_count":9,"subscribers_count":14,"default_branch":"1.6.x","last_synced_at":"2025-06-26T17:39:41.783Z","etag":null,"topics":["apigility","expressive","laminas","laminas-api-tools","laminas-migration","mezzio","migration","zendframework"],"latest_commit_sha":null,"homepage":"https://docs.laminas.dev/migration/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/laminas.png","metadata":{"funding":{"community_bridge":"laminas-project"},"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-10-30T18:27:44.000Z","updated_at":"2024-12-16T07:00:16.000Z","dependencies_parsed_at":"2023-01-16T22:31:14.254Z","dependency_job_id":"6ab4c52c-1d22-4178-bc7c-f97a202ad30b","html_url":"https://github.com/laminas/laminas-migration","commit_stats":{"total_commits":288,"total_committers":14,"mean_commits":"20.571428571428573","dds":0.5451388888888888,"last_synced_commit":"d4a4e3bfb7af2c822bcf08e0571e82dfa6c24602"},"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"purl":"pkg:github/laminas/laminas-migration","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laminas%2Flaminas-migration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laminas%2Flaminas-migration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laminas%2Flaminas-migration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laminas%2Flaminas-migration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/laminas","download_url":"https://codeload.github.com/laminas/laminas-migration/tar.gz/refs/heads/1.6.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laminas%2Flaminas-migration/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262117687,"owners_count":23261870,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apigility","expressive","laminas","laminas-api-tools","laminas-migration","mezzio","migration","zendframework"],"created_at":"2025-06-08T11:30:43.379Z","updated_at":"2025-07-02T10:31:44.297Z","avatar_url":"https://github.com/laminas.png","language":"PHP","funding_links":["https://funding.communitybridge.org/projects/laminas-project"],"categories":[],"sub_categories":[],"readme":"# laminas-migration\n\n\u003e ## 🇷🇺 Русским гражданам\n\u003e\n\u003e Мы, участники Laminas, родились и живем в разных странах. У многих из нас есть друзья, родственники и коллеги как в России, так и в Украине. Некоторые из нас родились в России. Некоторые из нас живут в России. У некоторых бабушки и дедушки сражались с фашистами во Второй мировой войне. Здесь никто не поддерживает фашизм.\n\u003e\n\u003e У одного из нас есть украинская родственница, которая спаслась из дома вместе с сыном. Поезд задержался из-за бомбежки на дороге впереди. У нас есть друзья, которые прячутся в бомбоубежищах. Мы с тревогой ждем весточки от них после воздушных налетов, которые беспорядочно наносят удары и попадают по больницам, школам, детским садам и домам. Мы не берем это из каких-либо СМИ. Мы наблюдаем это напрямую.\n\u003e\n\u003e Вы доверяете нам достаточно, чтоб использовать наши программы, и мы просим вас довериться нам вновь. Мы нуждаемся в помощи. Выходите и протестуйте против этой бесполезной войны. Остановите кровопролитие. Скажите \"Нет войне!\"\n\u003e\n\u003e ## 🇺🇸 To Citizens of Russia\n\u003e\n\u003e 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.\n\u003e\n\u003e 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.\n\u003e\n\u003e 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!\"\n\nMigrate a Zend Framework project or third-party library to target\nLaminas, Expressive, and/or Apigility.\n\nThis tool will migrate:\n\n- Zend Framework MVC projects, all v2 and v3 releases.\n- Apigility projects, all versions\n- Expressive versions, all versions\n\nFor more details, please read the [documentation](https://docs.laminas.dev/migration/) and [FAQ](https://docs.laminas.dev/migration/faq/).\n\n## Installation\n\n### Via Composer\n\nInstall the library globally using [Composer](https://getcomposer.org):\n\n```bash\n$ composer global require laminas/laminas-migration\n```\n\n### Via cloning\n\nClone the repository somewhere:\n\n```bash\n$ git clone https://github.com/laminas/laminas-migration.git\n```\n\nInstall dependencies:\n\n```bash\n$ cd laminas-migration\n$ composer install\n```\n\nFrom there, either add the `bin/` directory to your `$PATH`, symlink the\n`bin/laminas-migration` script to a directory in your `$PATH`, or create an\nalias to the `bin/laminas-migration` script using your shell:\n\n```bash\n# Adding to PATH:\n$ export PATH=/path/to/laminas-migration/bin:$PATH\n# Symlinking to a directory in your PATH:\n$ cd $HOME/bin \u0026\u0026 ln -s /path/to/laminas-migration/bin/laminas-migration .\n# creating an alias:\n$ alias laminas-migration=/path/to/laminas-migration/bin/laminas-migration\n```\n\n## Usage\n\n### Migrating a library or project\n\nTo migrate a library or project to Laminas, use the `migrate` command:\n\n```bash\n$ laminas-migration migrate [--no-plugin] [--exclude=|-e=] [--keep-locked-versions] [path]\n```\n\nwhere:\n\n- `[path]` is the path to the project you want to migrate; if omitted, the\n  command assumes the current working directory.\n\n- `[--no-plugin]` can be specified to omit adding the Composer plugin\n  [laminas/laminas-dependency-plugin](https://github.com/laminas/laminas-dependency-plugin)\n  to your library or project. We do not recommend using this option; the plugin\n  ensures that any nested dependencies on Zend Framework packages will instead\n  install the Laminas variants. There are very few cases where this behavior is\n  not desired.\n\n- `[--exclude=|-e=]` can be used multiple times to specify _directories_ to omit\n  from the migration. Examples might include your `data/` or `cache/`\n  directories.\n  \n- `[--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.**\n\nWhen done, you can check to see what files were changed, and examine the\n`composer.json`. Run `composer install` to install dependencies, and then test\nyour application.\n\n### Forcing nested dependencies to resolve to Laminas packages\n\nIf you use the `--no-plugin` option to the `migrate` command, you can migrate\nnested dependencies manually using the `nested-deps` command:\n\n```bash\n$ laminas-migration nested-deps [path] [--composer=composer]\n```\n\nwhere:\n\n- `[path]` is the path to the project for which you want to perform the\n  operation; if omitted, the command assumes the current working directory.\n\n- `--composer` allows you to provide a custom path to the `composer` binary.\n\nThis will be a one-off operation. If you add dependencies later, or perform a\n`composer update`, you may need to re-run it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaminas%2Flaminas-migration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaminas%2Flaminas-migration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaminas%2Flaminas-migration/lists"}