Yii vs Zend Framework: What are the differences?
Developers describe Yii as "A high-performance PHP framework best for developing Web 2.0 applications". Yii comes with: MVC, DAO/ActiveRecord, I18N/L10N, caching, authentication and role-based access control, scaffolding, testing, etc. It can reduce your development time significantly. On the other hand, Zend Framework is detailed as "An open source, object-oriented web application framework implemented in PHP 5". Zend Framework 2 is an open source framework for developing web applications and services using PHP 5.3+. Zend Framework 2 uses 100% object-oriented code and utilises most of the new features of PHP 5.3, namely namespaces, late static binding, lambda functions and closures.
Yii and Zend Framework can be primarily classified as "Frameworks (Full Stack)" tools.
"Open source" is the primary reason why developers consider Yii over the competitors, whereas "Open source" was stated as the key factor in picking Zend Framework.
Yii and Zend Framework are both open source tools. Zend Framework with 5.71K GitHub stars and 2.87K forks on GitHub appears to be more popular than Yii with 4.86K GitHub stars and 2.22K GitHub forks.
According to the StackShare community, Yii has a broader approval, being mentioned in 58 company stacks & 32 developers stacks; compared to Zend Framework, which is listed in 40 company stacks and 22 developer stacks.
What is Yii?
What is Zend Framework?
Need advice about which tool to choose?Ask the StackShare community!
Sign up to add, upvote and see more prosMake informed product decisions
What are the cons of using Yii?
What are the cons of using Zend Framework?
Sign up to get full access to all the companiesMake informed product decisions
Sign up to get full access to all the tool integrationsMake informed product decisions
Of all PHP frameworks, my best and only choice is Yii . Think of this: you have a MySQL database, it contains several tables. Now you want to setup a PHP-MVC site, firstly, you must create Models, Yii have a very handy tool called Gii, you can easily create model with Gii just by one click, Gii will read your database table columns and create PHP models automatically for you. Now you need Controller, still with Gii, it will automatically create all 4 php files for you with Insert/Delete/Update/Select even with Search function.
Well, now the most modern way is to have a RESTful API, that's even easier with Yii, you even don't need to care about all the columns, just 4 lines of code you can expose your database table as RESTful API with all GET/POST/PUT/DELETE support, even you change your database table columns, you don't need to change any PHP code.
For security, Yii have embedded authentication and RBAC support. For multi language, Yii have embedded i18n support, all with out-of-box. Just play with it, I bet you will love it.
Zend framework is firstly designed for experienced professional developers, who have been part of international teams for years. With Zend Framework one could harness nuances of high scale eLearning, eCommerce and eBanking applications without fuss and implement robust, market demands meeting solutions. Zend Framework ships simple, without modules installed, so firstly to build up bare-bones for simple modular app, you will have to preinstall the set of GitHub hosted plugins and modules. Added to the mix, Microsoft is one of the main sponsors of the Zend Framework project, so your company would experience state of the art technologies mash up right away from the beginning of implementing theoretical application project to code stack. All in all, several international associations are awaiting you to enroll to enhance the experience of using Zend Framework 2.
The older parts of our core are still using ZF1. We are migrating to simpler framework agnostic controllers with 3rd party components.