Download the PHP package laminas/laminas-migration without Composer
On this page you can find all versions of the php package laminas/laminas-migration. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download laminas/laminas-migration
More information about laminas/laminas-migration
Files in laminas/laminas-migration
Package laminas-migration
Short Description Migrate a Zend Framework project or third-party library to target Laminas/Expressive/Apigility
License BSD-3-Clause
Informations about the package laminas-migration
laminas-migration
🇷🇺 Русским гражданам
Мы, участники 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:
Via cloning
Clone the repository somewhere:
Install dependencies:
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:
Usage
Migrating a library or project
To migrate a library or project to Laminas, use the migrate
command:
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.json
with thecomposer.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 runningcomposer install
(after the migration finished, you can manually re-configure yourcomposer.json
again by using a diff-tool) and updating thecomposer.lock
by just usingcomposer update --lock
. This wont trigger any update but refreshes thecomposer.lock
to be back in sync with thecomposer.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
If you use the --no-plugin
option to the migrate
command, you can migrate
nested dependencies manually using the nested-deps
command:
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 thecomposer
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.
All versions of laminas-migration with dependencies
ext-json Version *
composer/semver Version ^1.4 || ^2.0 || ^3.0
laminas/laminas-zendframework-bridge Version ^1.4.1
symfony/console Version ^3.4.17 || ^4.0 || ^5.0 || ^6.0