Migrating a Zend Framework application to ZF 2

Bart McLeod (14.Sep.2013 at 09:15, 50 min)
Talk at PFCongres 2013 (Dutch)

Rating: 4 of 5

Migrating a Zend Framework application to ZF 2

Who are you?

Claim talk

Talk claims have been moved to the new Joind.in site.

Please login to the new site to claim your talk

 
Comments closed.

Comments

Rating: 5 of 5

14.Sep.2013 at 18:29 by Camilo Sperberg (29 comments)

Really nice introduction on ZF2, I was afraid that I had to need more knowledge regarding ZF2 but everything was very well explained

Rating: 3 of 5

14.Sep.2013 at 19:27 by Jeroen van Dijk (79 comments)

As you explained on the start, when having experience with both of them you might not learn as much as a beginner. But still you I got new insights! Thank you.

Work on your talking pace though, because at the end there were still interesting subjects which didn't got the attention they deserved!

Rating: 4 of 5

15.Sep.2013 at 14:09 by Jasper N. Brouwer (74 comments)

Having worked with ZF1 and Symfony2, yesterdays tutorial by Rob Allen was my first glimpse of ZF2. After attending Bart McLeod's talk, I've a decent understanding of how ZF2 works, and that migrating a ZF1 project to ZF2 isn't something to take lightly ;)

Rating: 3 of 5

17.Sep.2013 at 16:23 by Henk Verhoeven (metaclass.nl) (3 comments)

A nice introduction to ZF2 and some very usefull tips, but you could have been more ambitious. I mean, i like your aproach for a small application one is working on alone, but what if you have a large application constantly being developed by a team of developers? It seems to me your aproach would require to stop regular development until porting is finished, or are you going to keep up with processing the changes from regular development while porting?

A more ambitious and less risky alternative could be to extend the existing application step by step to work on ZF2 while it remains fully functional on ZF1. This is done by one or two developers while maintenance by the regular team continues on the same code base. Porting will require a lot of choices between making adaptations on the application level, wrapping ZF2 components with a ZF1 compatible adapters or the other way around, whatever is the least work given the existing code and target design (Yes, you need to make a plan first).

When erverything works on both platforms you can go into production on ZF2. Once producton is stable on ZF2 you can remove ZF1-targeting code and confugurations that er no longer required. Finally port the rest of the application code to work without adapters on ZF2.

I did something like this with my applications when porting from PHP4 to PHP5: the 1.x versions of the phpPeanuts.org framework worked on both platforms for several years while the applications where ported one by one to run on PHP5. Then in a much shorter period each of them was ported to the PHP5-only 2.0 version of the framework.

I admit this would be a lot more work with ZF because of the bigger API and structural changes, requiring more wrapping etc., but i bet it can be done. It may cost more for the IT department (but probably less then trying to keep up with changes from regular development), but will be much less disruptive to the business then stopping regular development, so the orinization as a whole may be better off, including finacially. Furthermore, the team that does regular development gets time to learn ZF2 step by step instead of having to make a big leap of knowledge (and faith). Finally, if the porting project takes a bigger effort then estimated, you can take more time without the project failing completely (which would leave the application stuck on ZF1). And i bet it could result in another very interesting talk ;-)

© Joind.in 2018