laminas/laminas-migration
Composer 安装命令:
composer require laminas/laminas-migration
包简介
Migrate a Zend Framework project or third-party library to target Laminas/Expressive/Apigility
README 文档
README
🇷🇺 Русским гражданам
Мы, участники Laminas, родились и живем в разных странах. У многих из нас есть друзья, родственники и коллеги как в России, так и в Украине. Некоторые из нас родились в России. Некоторые из нас живут в России. У некоторых бабушки и дедушки сражались с фашистами во Второй мировой войне. Здесь никто не поддерживает фашизм.
У одного из нас есть украинская родственница, которая спаслась из дома вместе с сыном. Поезд задержался из-за бомбежки на дороге впереди. У нас есть друзья, которые прячутся в бомбоубежищах. Мы с тревогой ждем весточки от них после воздушных налетов, которые беспорядочно наносят удары и попадают по больницам, школам, детским садам и домам. Мы не берем это из каких-либо СМИ. Мы наблюдаем это напрямую.
Вы доверяете нам достаточно, чтоб использовать наши программы, и мы просим вас довериться нам вновь. Мы нуждаемся в помощи. Выходите и протестуйте против этой бесполезной войны. Остановите кровопролитие. Скажите "Нет войне!"
🇺🇸 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 and FAQ.
Installation
Via Composer
Install the library globally using Composer:
$ composer global require laminas/laminas-migration
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
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 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 yourdata/orcache/directories. -
[--keep-locked-versions]will synchronize yourcomposer.jsonwith thecomposer.lockpackages before the migration starts. This will ensure that your projects stays on the same versions even after deleting the lock-file. Thus, after runningcomposer install(after the migration finished, you can manually re-configure yourcomposer.jsonagain by using a diff-tool) and updating thecomposer.lockby just usingcomposer update --lock. This wont trigger any update but refreshes thecomposer.lockto be back in sync with thecomposer.jsonagain. 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
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. -
--composerallows you to provide a custom path to thecomposerbinary.
This will be a one-off operation. If you add dependencies later, or perform a
composer update, you may need to re-run it.
laminas/laminas-migration 适用场景与选型建议
laminas/laminas-migration 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 58.11k 次下载、GitHub Stars 达 60, 最近一次更新时间为 2019 年 10 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 laminas/laminas-migration 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 laminas/laminas-migration 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 58.11k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 60
- 点击次数: 29
- 依赖项目数: 6
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2019-10-30