Upgrading from 1.1.14 to 2.x

Hi guys.

We have a fairly large product built on Yii 1.1.x (I believe 1.1.14) and I’d like to know what’s involved in upgrading a typical large project to 2.x (latest)? I’ve read that there are significant changes between the two. We already run PHP 5.5/5.6 so should be covered in that respect.

How many man hours should an upgrade take for a large project? Imagine a CMS type system built on top of Yii. I know it’s a highly generic question but I’d like to know are we talking hours, days, weeks or months?



It’s impossible to tell without knowing your app and the way it was written. You have to judge by yourself.

Read this guide first http://www.yiiframework.com/doc-2.0/guide-intro-upgrade-from-v1.html

The first thing you should do is upgrade to 1.15 (Security Issue).

I have converted a pretty large project from 1 to 2. It turned into almost a complete rewrite due to a lot of things not behaving the same and a lot of new features in 2 that weren’t available in 1. It took about a month (about 500 man hours spit between a few people), but it was well worth it. It is also important to note that we went from mysql to mongodb for performance reasons and that took a little extra time.

Thanks guys. That’s useful.

Anyone else who can share their experience of migrating a large project?

That’s going to be a rewrite. If you project has domain layer abstracted, it could be rewrite of controllers. If not, it will affect more. Good news is that many concepts would be familiar.

Thanks guys. Is there any chart showing performance differences between 1.x and 2.x? Or has anyone noticed significant performance improvements?

I don’t think anyone did proper testing. If you’re going to test it, do it on something with DB operations. It’s 2.0 strong side.