How to migrate ZF2(v2.2.1) project to Laminas?
My application is ZF v2.2.1, don’t have vendor folder but have only library folder which has all the packages like Zend-authentication, Zend-Barcode etc. I have followed the Migration steps from Migrate to Laminas.
I ran the migration command over my ZF2 application. After running migration command, I have got many package abandoned errors (For ex: Package zendframework/zend-authentication is abandoned, you should avoid using it. Use laminas/laminas-authentication instead). So, I have downloaded the recommended packages like laminas-authentication, laminas-barcode etc. Now, I am having Library folder and the Vendor folder. I want to understand few things:
- The only change I see after migration is the vendor folder is newly added and all other files of ZF2 remains the same. But the actual Laminas MVC files are different. So, what is the use of this migration steps link?(Migrate to Laminas). Is my application really migrated to Laminas and will I get all the security updates in future through composer update?
- When running the application in browser, I still see my application uses the packages from library folder. Am I want to rewrite all the modules to use Vendor folder?(For ex: /library/Zf2/Zend/Authentication —> /vendor/laminas/laminas-authentication). If so, it doesn’t seems like migration. It looks like upgrading each files to laminas.