The timeless question: Which is better, CodeIgniter or Kohana?
Posted in CodeIgniter, Kohana Framework, PHP on September 30th, 2011 by Joonas – 2 CommentsI’m not going to make a feature comparison chart, table, or anything of the sort… people have already done that and it hasn’t solved anything. The answer is that it depends on the project. Kohana is more capable and flexible, but CodeIgniter is simpler and it has better documentation.
If you are new to both frameworks, CodeIgniter is easier to learn. If you are building a simple website, CodeIgniter is great. Your project will always be easy to come back to because CodeIgniter has not fundementally changed since… well, ever.
Kohana on the other hand has changed. When it made the leap from 2.x to 3.x, many things changed and old code from 2.x would no longer work in 3.x, expect with simple examples. The validation system changed, the auth module changed, etc. Did they change for the better? Yes. Upgrading frameworks and refactoring code is lame, but a true Kohana enthusiast won’t care.
Kohana is my favorite of the two because it lets me extend everything and access everything. Kohana is complex enough to be used for complex projects, but if you are building something on the enterprise level, go take a look at Symfony. The obvious down side to Kohana is the lack of documentation, but maybe that will be fixed someday. It was easy for me to get a hang of Kohana because I had first used CodeIgniter for a long time on professional projects (Kohana is a fork of CodeIgniter, but it has since evolved to be something completely different).
How to decide between CodeIgniter and Kohana?
This part is easy. It depends on what you are doing and how skilled you are.
Are you new to PHP or frameworks? Build a simple website with CodeIgniter and get the hang of it, then download Kohana and ascend to the next level.
Are you experienced with PHP and/or frameworks? Just go ahead and use Kohana. It does everything that CodeIgniter does and more.
If you didn’t stop reading this post by now or just skipped to the end… well, I think it was me rambling about nonsense, but the answer is that Kohana is better. Anyone who claims differently doesn’t know what they are talking about.

