Has anyone please describe how much architecture changed by Zend from Ver 1 to 3. Recently zend released ZF3 but no information provide how to migrate from zf1 to zf3. I have an application was developed in zf1, now looking for upgrade it to using PHP 7 power with ZF3. Should i need to rewrite entire code or how much effort need to move to latest version.
Also, ZF3 claimed its 4x faster under PHP7. In reality it is PHP7 itself which is faster, not ZF3. I am not sure how much they improved as comparing to Laravel framework which is one of top framework past few years.
If anyone used the ZF3 please share their experiences.
It may be a challenging road but I believe it is possible although it may come with a significant cost of time.
Basically, migrate from ZF2 then migrate to ZF3.
Or, if you just want the PHP7 speed ups, just upgrade to PHP7 and do some lint testing which may uncover some (but not all) bugs.
Read on for more...
Migrate to ZF2 first
https://framework.zend.com/manual/2.1/en/migration/overview.html
Then, migrate to ZF3:
https://docs.zendframework.com/tutorials/migration/to-v3/overview/
I'd imagine there is a significant amount of breakage due to the significant changes from ZF to ZF2 might have.
But, you can run ZF1 and ZF2 in parallel:
https://framework.zend.com/manual/2.4/en/migration/zf1_zf2_parallel.html
It is unknown to me whether ZF1 and ZF3 can be run in parallel but perhaps not impossible.
Or, just try it out with PHP7
If it was me, I might just try upgrading to PHP7 first and look for any breakages in the code.
You can run something similar to the following to lint test your PHP code against PHP7:
If you're on a Mac you can use the PHP version switcher by installing it with brew.
You may need to comment out this line in your httpd.conf:
then :
Add this line to your httpd.conf:
Switch versions: