Need advice about which tool to choose?Ask the StackShare community!
Kohana vs Yii: What are the differences?
What is Kohana? An elegant HMVC PHP5 framework. Kohana is an elegant, open source, and object oriented HMVC framework built using PHP5, by a team of volunteers. It aims to be swift, secure, and small.
What is Yii? 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.
Kohana and Yii can be primarily classified as "Frameworks (Full Stack)" tools.
"Open source" is the top reason why over 3 developers like Kohana, while over 36 developers mention "Open source" as the leading cause for choosing Yii.
Kohana and Yii are both open source tools. It seems that Yii with 4.86K GitHub stars and 2.22K forks on GitHub has more adoption than Kohana with 1.61K GitHub stars and 464 GitHub forks.
180vita, Utrip, and FreshMail are some of the popular companies that use Yii, whereas Kohana is used by Huia, Zeel Networks Inc, and Plinga. Yii has a broader approval, being mentioned in 58 company stacks & 32 developers stacks; compared to Kohana, which is listed in 3 company stacks and 3 developer stacks.
This website was originally written in Yii as PHP was my main language back then. After learning Django, I realized just how quickly you could build a web app with less lines. So I migrated my website to Django in a week or two and managed to cut down the lines of code by half. Some of the lines saving came from the models, the views, and the expressiveness of Python. Django requires like config for the models and they provide many generic views that abstracts away common patterns.
Pros of Kohana
- Open source4
- Efficient and lightweight3
- Cascading filesystem3
- Easy to understand PHP framework2
- Extensible2
- A business opportunity1
Pros of Yii
- Open source42
- Code generator33
- Simple33
- Active record29
- Full featured26
- Documentation21
- High performance21
- Rapid development20
- Flexible16
- Mvc11
- Not bloated10
- Stable Release8
- Community8
- Amazing8
- View Helpers7
- Modular architecture6
- Long Term Support6
- Easy setup, easy develop5
- Easy1
Sign up to add or upvote prosMake informed product decisions
Cons of Kohana
Cons of Yii
- Unnatural love of arrays2
- Promotes spagetti code1
- Too Opinionated1
- Promotes bad practice1