开发者

Kohana or CakePHP? [closed]

Closed. This question is opinion-based. It is not currently accepting answers. 开发者_如何学编程

Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.

Closed 9 years ago.

Improve this question

Being a web development over the years, I have good experiences on php, xhtml, css, javascript, ajax, etc. I also work with some old php libraries like Smarty, PEAR, etc. Recently I decided to use a PHP framework, and I started to learn/use CakePHP. It's not really simple for an ancient philosopher like me, but I think it's a valuable experience.

Now I'm planning to select a good framework, because I haven't enough time to learn many new things like the past years. Searching on StackOverflow I found the Kohana framework and it seems to be a good framework. Would anyone please let me know if it's a good idea to switch to Kohana when I'm (a little) familiar with CakePHP. Witch on is better and let lazy developers like me be aware from switching to another framework in the future?

Thanks for your help


As I said here: https://stackoverflow.com/questions/3060699/php-framework-benefits-downfalls/3088015#3088015 The bottom line differences between frameworks are marginal. Choose one, stick with it and get on with your work.

It's how well you know the framework not the framework you know.


CakePHP is a headache to work with. I have always likened CakePHP to PHP, and Kohana to Python. Cake is full for surprising shocks and conventions, in Kohana what you get is what you guessed. CakePHP fights you to help you. Kohana gives you the sharpest and the most powerful tools you need accomplish your goal.

I ditched CakePHP four years ago for CodeIgniter. Then I choose to go with Kohana when it was created from CodeIgniter because Kohana takes the best parts of CodeIgniter and fixes the bad parts.

In my humble opinion, Kohana is THE best PHP framework in the world! And I recommend Kohana to everyone I know; most of them are very surprised that a PHP framework could be so easy and intuitive to work with. Needless to say, they are very very happy and productive with Kohana.

Go for Kohana!


I strongly recommend CakePHP. It might have a learning curve for some. However with one of the largest online communities there is always someone around that can help you out. I don't find CakePHP slow at all.


Between Kohana and CakePHP, I'd strongly suggest Kohana (also because it's a php5 fork of CodeIgniter, the lightest framework of them all).

Because people tell me I'm a CakePHP hater, let me show you its weaknesses:

  • slow
  • uses php4 OOP, where "your children can play with your privates" :)
  • did I mention slow?

On the other hand, I'd strongly recommend a nice and powerful PHP library: Zend Framework. It doesn't have the really steep learning curve like it had a few years ago, because now you find many tutorials and screencasts (see ZendCasts). Users of framework like CodeIgniter put all the Zend Framework library into CI and such and use them independently (which, from my point of view is another +1 for ZF)

Later edit: You can see actually how slow CakePHP is compared to the lightning fast CodeIgniter and the Zend Framework here. From the speed tests you can see that Zend Framework is somewhere from 2 to 3 time fast than Cake and Code Igniter somewhere from 2 to 3 times faste than Zend Framework. That means CodeIgniter can be as 6times as fast than Cake (which from my point of view is humiliating for Cake)


CakePHP is good. but has a bit of a learning curve. thought the cookbook is vast. cant really find all that we need.

i found codeignitor good too.


I don't know about kohana but I have one year experience with cakePHP. I addicted to cakePHP but you have to concern following things

*steep learning curve

*support only oop

*inbuilt ORM support ( that feature awesome)

*easily integrate and develop functionality with javascript and javascript based libraries (jQuery, etc)

*good documentation

*little bit slow (thing is we can't compare kohana "hello world" application and cakephp "hello world" application, if u tried to write hello world application cakephp automatically loaded orm support, validations, etc.. so in fully loaded application I think compete with other php frameworks.


This question is old, but I just wanted to share a few points. So however reads it will get to know a bit more.

All frameworks have their own pros and crons. Its all about how well you know the framework. CakePHP is bit slow but it really helps accomplish things faster. You design the database structure and cakephp's console creates all most everything for you. It really get you moving faster.

CakePHP 2.0 uses lazy loading of classes. Its much faster than 1.3 version, its got more faster routes. You can see comparison here: http://www.phpframeworks.com/

In regards to the slowness. It depends on how you code and structure your application. Bad coding will slow down any framework out there. I have used Zend, Cake, Codeigniter and Yii. But I mostly use Cake because it makes us get things done faster.

There are many blogs and answers on stackoverflow as to how you can speed up you cakephp application. Here is a good one by "JoeyP" : Speeding up CakePHP

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜