PHP Frameworks

Discussion in 'PHP' started by shantanubala, Nov 25, 2008.

  1. #1
    I have been programming in PHP for a while, and noticed Ruby on Rails, with a following discussion of PHP frameworks that emulate the functionality of Rails.

    From what I hear, these are the most popular frameworks:
    1. CodeIgniter
    2. KohanaPHP
    3. CakePHP
    4. Zend
    5. Symfony

    What do you think of PHP frameworks? They seem to make life a lot easier while programming but slow down the responsiveness of the site. Does anybody here use them extensively?
     
    shantanubala, Nov 25, 2008 IP
  2. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #2
    i use code igniter, cakephp and zend..

    For me, codeigniter is the best from the 3. i think it is best to use if your creating some simple functions, like a simple cms.. ever heard of rabbit-forms in Code Igniter? yep it makes the work easier.

    Really it depends upon the scope of the site..
     
    bartolay13, Nov 25, 2008 IP
  3. krzyk

    krzyk Peon

    Messages:
    61
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I used CakePHP, and now KohanaPHP.
    The difference is like hell(CakePHP) and heaven (KohanaPHP). Now every site I develop I used Kohana.
    I heard that is based on CodeIgniter, but was made PHP5 only, and it is more OO.

    Try those frameworks for yourself and you will see what suits you.
     
    krzyk, Nov 26, 2008 IP
  4. shantanubala

    shantanubala Peon

    Messages:
    67
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I've heard great things about KohanaPHP too. I'll be sure to try it (it just seems to have a lacking documentation).

    I don't really like Zend or CakePHP. Synfony has great features but its slow - too slow.
     
    shantanubala, Nov 26, 2008 IP
  5. paitken

    paitken Peon

    Messages:
    42
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I personally like CakePHP. To me, it's well documented. I just took a look at Kohana...might be worth taking a look at.
     
    paitken, Nov 26, 2008 IP
  6. web_doctor

    web_doctor Peon

    Messages:
    164
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I have tried CodeIgniter, its a great PHP Framework... You'll sure enjoy using this framework...
     
    web_doctor, Nov 26, 2008 IP
  7. web_doctor

    web_doctor Peon

    Messages:
    164
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I want to try CakePHP too, but I need to master CodeIgniter firsts. :)
     
    web_doctor, Nov 26, 2008 IP
  8. elias_sorensen

    elias_sorensen Well-Known Member

    Messages:
    852
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    110
    #8
    Yeah, I prefer CodeIgniter too, but I don't use frameworks that often.
    You could also look at Prado (a component based and eventdriven framework), Qcodo, Akelos, evoCore, Stratos, Zoop, PHOCOA, Kohana and Limb. All those are good frameworks too!
     
    elias_sorensen, Nov 26, 2008 IP
  9. web_doctor

    web_doctor Peon

    Messages:
    164
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Good, thats great...
     
    web_doctor, Nov 27, 2008 IP
  10. sarahk

    sarahk iTamer Staff

    Messages:
    28,906
    Likes Received:
    4,555
    Best Answers:
    123
    Trophy Points:
    665
    #10
    cakePHP is really good - and I recommend using frameworks because the sites we build are increasingly complex - and a framework lets you step beyond the nuts and bolts and focus on the site you are actually building.

    They're a step back from a content management system though, so make sure you know why you are using a framework over a CMS before you start.
     
    sarahk, Nov 27, 2008 IP
  11. gemini181

    gemini181 Well-Known Member

    Messages:
    2,883
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    155
    #11
    Drupal is both a CMS, and an excellent PHP framework.
     
    gemini181, Nov 27, 2008 IP
  12. web_doctor

    web_doctor Peon

    Messages:
    164
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #12
    I think I have to try them one by one... :)
     
    web_doctor, Nov 27, 2008 IP
  13. sarahk

    sarahk iTamer Staff

    Messages:
    28,906
    Likes Received:
    4,555
    Best Answers:
    123
    Trophy Points:
    665
    #13
    So I can use Drupal to not be a CMS at all?
    The good CMS will all have a good "framework" behind them, but not all those frameworks can be pared back and used without the CMS.
    SilverStripe for instance uses Symfony while Joomla creates it's own.
     
    sarahk, Nov 27, 2008 IP
  14. gemini181

    gemini181 Well-Known Member

    Messages:
    2,883
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    155
    #14
    I was 'quoting' from a book I looked at by two Drupal experts. They claimed, "Drupal is also an excellent PHP framework."

    I'll try to also answer your exact question:
    1) The admin area let's you turn off many of the default modules.
    2) The theme can be 100% customized.

    Let's just say some leading experts claim Drupal is also an excellent PHP framework. :)
     
    gemini181, Nov 28, 2008 IP
  15. shantanubala

    shantanubala Peon

    Messages:
    67
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Drupal, from what I know, is a Content Management System - not a PHP development framework (the type of framework this thread refers to). I understand Drupal can be used to manage a website, but is there something else I'm missing? Can Drupal be used as some sort of rapid development framework?
     
    shantanubala, Nov 28, 2008 IP
  16. gemini181

    gemini181 Well-Known Member

    Messages:
    2,883
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    155
    #16

    Yes,

    What Drupal really is is a Rapid Development Framework...

    I just now searched on Google and found both pro and anti-Drupal people call it a Rapid Development Framework.

    search

    EDIT:

    I also tried a slightly different search phrase, and found this:

    For us at 2bits.com, Drupal has always been, first and foremost, a web applications framework, that happens to have some 'out of the box' features that also make it a content management framework (CMF), and a content management system (CMS).
     
    gemini181, Nov 28, 2008 IP
  17. irunbackwards

    irunbackwards Peon

    Messages:
    791
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #17
    I don't really work with frameworks, they can be really useful, but to pinpoint and finetune I believe it's always best to go 100% custom. I work with classes and functions I've built since I was a baby PHP programmer, and with those in my arsenal, I don't really need frameworks to do rapid development.

    But I've heard good things about CakePHP and CodeIgnitor.
     
    irunbackwards, Nov 28, 2008 IP
  18. sarahk

    sarahk iTamer Staff

    Messages:
    28,906
    Likes Received:
    4,555
    Best Answers:
    123
    Trophy Points:
    665
    #18
    A key advantage over a homegrown library is security... you have more people reviewing the site for weakenesses... and plugging them.

    Although most of us are building small sites that don't really attract the attention of hackers.
     
    sarahk, Nov 30, 2008 IP
    gemini181 likes this.
  19. shantanubala

    shantanubala Peon

    Messages:
    67
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #19
    Also, above security, the MVC structure enforces good coding practices, and it's also good if multiple people are working on the same project - the framework-based code is often easier to understand and maintain.
     
    shantanubala, Nov 30, 2008 IP
  20. joebert

    joebert Well-Known Member

    Messages:
    2,150
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    145
    #20
    What I find interesting is the difference in needs between a framework for Javascript and a framework for PHP.

    With JS, you're primarily working around browser inconsistencies.
    Whereas with PHP, well, that's what PHP does, it works around server differences.

    So when I see frameworks like cake/etc, it just seems redundant to me.
     
    joebert, Nov 30, 2008 IP