Need advice about which tool to choose?Ask the StackShare community!

Kohana

59
41
+ 1
15
Yii

709
385
+ 1
311
Add tool

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.

Decisions about Kohana and Yii

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.

See more
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Kohana
Pros of Yii
  • 4
    Open source
  • 3
    Efficient and lightweight
  • 3
    Cascading filesystem
  • 2
    Easy to understand PHP framework
  • 2
    Extensible
  • 1
    A business opportunity
  • 42
    Open source
  • 33
    Code generator
  • 33
    Simple
  • 29
    Active record
  • 26
    Full featured
  • 21
    Documentation
  • 21
    High performance
  • 20
    Rapid development
  • 16
    Flexible
  • 11
    Mvc
  • 10
    Not bloated
  • 8
    Stable Release
  • 8
    Community
  • 8
    Amazing
  • 7
    View Helpers
  • 6
    Modular architecture
  • 6
    Long Term Support
  • 5
    Easy setup, easy develop
  • 1
    Easy

Sign up to add or upvote prosMake informed product decisions

Cons of Kohana
Cons of Yii
    Be the first to leave a con
    • 2
      Unnatural love of arrays
    • 1
      Promotes spagetti code
    • 1
      Too Opinionated
    • 1
      Promotes bad practice

    Sign up to add or upvote consMake informed product decisions

    What is Kohana?

    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?

    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.

    Need advice about which tool to choose?Ask the StackShare community!

    What companies use Kohana?
    What companies use Yii?
    See which teams inside your own company are using Kohana or Yii.
    Sign up for StackShare EnterpriseLearn More

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with Kohana?
    What tools integrate with Yii?

    Sign up to get full access to all the tool integrationsMake informed product decisions

    What are some alternatives to Kohana and Yii?
    Laravel
    It is a web application framework with expressive, elegant syntax. It attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as authentication, routing, sessions, and caching.
    CodeIgniter
    CodeIgniter is a proven, agile & open PHP web application framework with a small footprint. It is powering the next generation of web apps.
    JavaScript
    JavaScript is most known as the scripting language for Web pages, but used in many non-browser environments as well such as node.js or Apache CouchDB. It is a prototype-based, multi-paradigm scripting language that is dynamic,and supports object-oriented, imperative, and functional programming styles.
    Git
    Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
    GitHub
    GitHub is the best place to share code with friends, co-workers, classmates, and complete strangers. Over three million people use GitHub to build amazing things together.
    See all alternatives