SitePoint Sponsor

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 25 of 42
  1. #1
    SitePoint Enthusiast
    Join Date
    Dec 2010
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    which php framework is recommended?

    Hi, i'm planning to develop a site using php. Need advice which framework is good. Pros and cons will be good. Thanks

  2. #2
    I solve practical problems. bronze trophy
    Michael Morris's Avatar
    Join Date
    Jan 2008
    Location
    Knoxville TN
    Posts
    2,023
    Mentioned
    62 Post(s)
    Tagged
    0 Thread(s)
    Different frameworks are designed for different purposes. Some try to turn PHP into Ruby (Cake, to a lesser extent Symphony), others are very generic and can be applied in a lot of different scenarios (Zend). Some are very specialized (Joomla or Drupal's internal frameworks). Some are loosely coupled, meaning you can port their pieces to other projects easily, while others are strongly coupled, meaning their pieces and components don't work (or work well or easily) individually.

    So without knowing what you are going to do any recommendations aren't going to be useful. There's no 'one size fits all' shoe.

  3. #3
    SitePoint Enthusiast
    Join Date
    Dec 2010
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Michael,

    I plan to develop a site that have MVC architecture (joomla like) but it's business application, so that i can install my plugin, module and etc. In this case, which framework you will recommend?

    Thanks

  4. #4
    SitePoint Evangelist
    Join Date
    Aug 2005
    Location
    Winnipeg
    Posts
    498
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Based on your limited input, I would strongly suggest Joomla (if MVC is of importance) or Drupal if quick and dirty is acceptable.

    Cheers,
    Alex
    The only constant in software is change itself

  5. #5
    SitePoint Enthusiast
    Join Date
    Dec 2010
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The web apps that plan to develop will be like zoho. I'm not sure joomla can be applied. As far as i understand, joomla is like a CMS and not a php framework.

  6. #6
    I solve practical problems. bronze trophy
    Michael Morris's Avatar
    Join Date
    Jan 2008
    Location
    Knoxville TN
    Posts
    2,023
    Mentioned
    62 Post(s)
    Tagged
    0 Thread(s)
    Joomla's CMS sits on a custom MVC layer. It is possible to use that layer without the CMS layer.

  7. #7
    SitePoint Evangelist
    Join Date
    Aug 2005
    Location
    Winnipeg
    Posts
    498
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Joomla has a nice component architecture which allows you to add or remove components, probably even the CMS portion of it if really desired - might cause issues though.

    Cheers,
    Alex
    The only constant in software is change itself

  8. #8
    SitePoint Enthusiast
    Join Date
    Dec 2010
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    what php framework you recommend? To develop business application like zoho?

  9. #9
    SitePoint Guru
    Join Date
    Mar 2006
    Posts
    701
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I do not have experience with joomla or drupal but I have this question.
    If you will extend drupal or joomla, is not ( your application) be faster if you use a framework like yii for example having just the things that you want as you want them even with joomla for example some things will be ready?
    If you will not use drupal or joomla maybe you will look at yiiframework.com

  10. #10
    SitePoint Member
    Join Date
    Dec 2010
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    smarty i recommend..

  11. #11
    Utopia, Inc. silver trophy
    ScallioXTX's Avatar
    Join Date
    Aug 2008
    Location
    The Netherlands
    Posts
    9,036
    Mentioned
    152 Post(s)
    Tagged
    2 Thread(s)
    Quote Originally Posted by samhaienator View Post
    smarty i recommend..
    Smarty is not a PHP framework, it's a templating engine.
    Rémon - Hosting Advisor

    Minimal Bookmarks Tree
    My Google Chrome extension: browsing bookmarks made easy

  12. #12
    SitePoint Zealot
    Join Date
    Feb 2009
    Location
    Bristol
    Posts
    116
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In a nutshell

    For enterprise level apps (like the one you describe) use Zend or Symfony. The former is more flexible, has good documentation, but can require a lot of configuration - the latter has some really nice components, but again needs a fair bit of configuration and can be quite slow.

    For simpler apps - use CodeIgniter or CakePHP - personally I don't like Cake, it has some nice features but has too much magic for my tastes. CodeIgniter has excellent documentation and it's huge community is a great resource for troubleshooting.

    There are other frameworks to consider - but I only have experience with these.

    Personally, given your requirements, I'd go with Zend

  13. #13
    SitePoint Enthusiast
    Join Date
    Dec 2010
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi sunwukung, thank you so much for your experiences and tips. It's really help to make decision. Thanks again!

  14. #14
    I solve practical problems. bronze trophy
    Michael Morris's Avatar
    Join Date
    Jan 2008
    Location
    Knoxville TN
    Posts
    2,023
    Mentioned
    62 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by samhaienator View Post
    smarty i recommend..
    smarty is the worst possible thing you can do to yourself or your code. I've ranted on it before so I'll leave it at that.

  15. #15
    I solve practical problems. bronze trophy
    Michael Morris's Avatar
    Join Date
    Jan 2008
    Location
    Knoxville TN
    Posts
    2,023
    Mentioned
    62 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ScallioXTX View Post
    Smarty is not a PHP framework, it's a templating engine.
    And an extremely poor bug ridden one at that.

  16. #16
    SitePoint Zealot
    Join Date
    Dec 2010
    Posts
    187
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've to agree with Michael on the topic of Smarty - avoid it at ALL costs. I won't rant on it, I could write a whole page about why it's bad, from concepts to execution.

  17. #17
    SitePoint Zealot
    Join Date
    Feb 2009
    Location
    Bristol
    Posts
    116
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    +1 for the Smarty hating - I can't stand it, what's the point of learning a sub-standard imitation of what is already an arguably ropey language! Just check out the job boards, they're positively screaming for folks with Smarty skills...

  18. #18
    Utopia, Inc. silver trophy
    ScallioXTX's Avatar
    Join Date
    Aug 2008
    Location
    The Netherlands
    Posts
    9,036
    Mentioned
    152 Post(s)
    Tagged
    2 Thread(s)
    Although a good bashing is very nice every now and then and I don't want to spoil the fun, but can we please drop the smarty thing and continue talking about frameworks? Thanks
    Rémon - Hosting Advisor

    Minimal Bookmarks Tree
    My Google Chrome extension: browsing bookmarks made easy

  19. #19
    I solve practical problems. bronze trophy
    Michael Morris's Avatar
    Join Date
    Jan 2008
    Location
    Knoxville TN
    Posts
    2,023
    Mentioned
    62 Post(s)
    Tagged
    0 Thread(s)
    I don't think PHP has a great framework, like dJango for python or Rails for Ruby. If it did I'd expect to see wider acceptance. Instead there are far more PHP frameworks than any other language and each one has its niche. I hope to see mine enter the fray this fall, and it's niche will be instruction. An instructive framework for novice to intermediate programmers to illustrate the concepts of MVC clearly. I'm personally taking clarity of code as the first concern - both in docs and in the code itself. It remains to be seen if I'll be successful.

    The great part of this is that PHP has a wider variety of framework choice than any other language.

    The terrible part of this is that PHP has a wider variety of framework choice than any other language.



    It's easy to get overwhelmed by the choices and until you've done the large project easier still to get confused. That's why I think Gazelle (my framework project) has a niche waiting for it. I don't expect it to be the framework anyone deploys enterprise aps on like Zend or Symphony - but I do expect it to prepare programmers for the task of evaluating and choosing frameworks based on their needs.

  20. #20
    SitePoint Wizard bronze trophy Immerse's Avatar
    Join Date
    Mar 2006
    Location
    Netherlands
    Posts
    1,661
    Mentioned
    7 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by Michael Morris View Post
    I hope to see mine enter the fray this fall...
    Fall? Hurry up already, we're waiting
    Seriously though, I'm looking forward to trying your framework.


    @inblues: I just took a look at Zoho, it seems like a huge project to build something similar. I'd steer away from Joomla for this, and I'd like to suggest one of the more lower level frameworks such as Zend/ Symphony et al.

    Be aware that building something like zoho, with all it's applications etc. will probably require a lot of custom work.

  21. #21
    SitePoint Member baru's Avatar
    Join Date
    Jan 2005
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What about YII, Kohana, Cake PHP or Codeigniter? These are all php frameworks. Codeigniter is probabally easiest for beginners but I've been looking into using YII for my next project.

  22. #22
    SitePoint Guru
    Join Date
    Mar 2006
    Posts
    701
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I used these frameworks (for kohana not the last version) and I liked more Yii.

  23. #23
    SitePoint Enthusiast
    Join Date
    Apr 2007
    Posts
    70
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    @Michael Morris I am not sure you can say that Django and Rails are dominant frameworks while no one php framework isn't dominant. Django and Rails certainly have their competition in the framework departments they are just not as vocalized.

    Pylons is one great example of a framework for Python that is better than Django in many ways. Rails 3 is also living proof that the Rails community has been changing as it incorporates tech from other frameworks and their methodologies so that it could keep its spot as the evangelized framework.

    As for Php frameworks go, Symphony and CodeIgniter are simply the best. Zend is a mess to maintain and Cake is too cobbled together, although it is probably the most Rails-like.

    But, if you don't mind a lack of documentation then Kohana's latest version is really, really good. It might be the best framework out there code for code.

  24. #24
    SitePoint Zealot
    Join Date
    Feb 2009
    Location
    Bristol
    Posts
    116
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'd be interested to hear you elaborate on your framework evaluation.

  25. #25
    SitePoint Zealot Zurev's Avatar
    Join Date
    Feb 2009
    Posts
    171
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Michael Morris View Post
    I don't think PHP has a great framework, like dJango for python or Rails for Ruby. If it did I'd expect to see wider acceptance. Instead there are far more PHP frameworks than any other language and each one has its niche. I hope to see mine enter the fray this fall, and it's niche will be instruction. An instructive framework for novice to intermediate programmers to illustrate the concepts of MVC clearly. I'm personally taking clarity of code as the first concern - both in docs and in the code itself. It remains to be seen if I'll be successful.

    The great part of this is that PHP has a wider variety of framework choice than any other language.

    The terrible part of this is that PHP has a wider variety of framework choice than any other language.



    It's easy to get overwhelmed by the choices and until you've done the large project easier still to get confused. That's why I think Gazelle (my framework project) has a niche waiting for it. I don't expect it to be the framework anyone deploys enterprise aps on like Zend or Symphony - but I do expect it to prepare programmers for the task of evaluating and choosing frameworks based on their needs.
    In agreement with the others it seems, I've seen your posts, and it's obvious you know your stuff, and I am waiting to try out your framework as well!


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •