What are PHP Frameworks?

Discussion in 'PHP' started by shubhamjain, Jun 3, 2010.

  1. #1
    I googled but couldnt understand what are PHP frameworks? Cna any one tell me waht are they and whats their use?
     
    shubhamjain, Jun 3, 2010 IP
  2. gapz101

    gapz101 Well-Known Member

    Messages:
    524
    Likes Received:
    8
    Best Answers:
    2
    Trophy Points:
    150
    #2
    the idea is basically mvc (model-view-controller)
     
    gapz101, Jun 3, 2010 IP
  3. saviola

    saviola Peon

    Messages:
    17
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    The definition Framework is a little confusedly! Good Fraemework provides an architecture, components and tools for developers to build complex web applications faster.

    PHP frameworks streamline the the development of web applications written in PHP by providing a basic structure for which to build the web applications. In other words, PHP frameworks help to promote rapid application development (RAD), which saves you time, helps build more stable applications, and reduces the amount of repetitive coding for developers. Frameworks can also help beginners to build more stable apps by ensuring proper database interaction and coding on the presentation layer. This allows you to spend more time creating the actual web application, instead of spending time writing repetitive code.
    The general idea behind the workings of a PHP framework is referred to as Model View Controller (MVC). MVC is an architectural pattern in programming that isolates business logic from the UI, allowing one to be modified separately from the other (also known as separation of concerns). With MVC, Model refers to data, View refers to the presentation layer, and Controller to the application or business logic. Basically, MVC breaks up the development process of an application, so you can work on individual elements while others are unaffected.

    Essentially, this makes coding in PHP faster and less complicated. That's most important advantag of Frameworks.
    Here you are a list with the http://www.phpframeworks.com/ most famous Frameworks[/URL].

    Good Luck!
     
    saviola, Jun 3, 2010 IP
    shubhamjain and sunnykgupta like this.
  4. shubhamjain

    shubhamjain Active Member

    Messages:
    215
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    63
    #4
    Hmmmm..

    So just like we have jQuery for javascript, we have similar PHP frameworks for PHP?
     
    shubhamjain, Jun 3, 2010 IP
  5. definitely

    definitely Well-Known Member

    Messages:
    520
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    160
    #5
    wow... I've been developing my websites from scratch since year... Din know that frameworks existed for PHP!!
    I knew about CMSs but an entire PHP Framework... Thx a lot guys...

    Cheers!
     
    definitely, Jun 3, 2010 IP
  6. ysubach

    ysubach Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Exactly, like jQuery for JS! There are many PHP frameworks around so you can choose what you like.
    Development w/out framework takes too much time and code is hard to support.
     
    ysubach, Jun 3, 2010 IP
  7. roopajyothi

    roopajyothi Active Member

    Messages:
    1,302
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    80
    #7
    roopajyothi, Jun 3, 2010 IP
  8. shubhamjain

    shubhamjain Active Member

    Messages:
    215
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    63
    #8
    hmm..

    Using PHP frameworks doesnt seem that easy as it is in the case of jQuery. In jQ we just include a javascript file and we are done but in this we have to follow a set of procedures. is there any PHP framework which can just be used by using an "include" statemnt.?
     
    shubhamjain, Jun 3, 2010 IP
  9. gapz101

    gapz101 Well-Known Member

    Messages:
    524
    Likes Received:
    8
    Best Answers:
    2
    Trophy Points:
    150
    #9
    gapz101, Jun 3, 2010 IP
  10. shubhamjain

    shubhamjain Active Member

    Messages:
    215
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    63
    #10
    Not necesarry but see I am going to host my website on ByetHost so I cannot make any changes in server configuration which is required in all frameworks. I am just looking for a framework which can be used just by a simple include statement.
     
    shubhamjain, Jun 3, 2010 IP
  11. sharetips1

    sharetips1 Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    A few short years ago, one of the more common criticisms about PHP was that it did not support MVC-style architectures. Times change. And these days, there are a number of choices available in the world of PHP frameworks. This series takes a look at three widely used PHP frameworks — Zend, symfony, and CakePHP — examining their similarities and differences while building and extending a sample application in each of the three frameworks.
     
    sharetips1, Jun 4, 2010 IP
  12. shubhamjain

    shubhamjain Active Member

    Messages:
    215
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    63
    #12
    Damn! I am banging my head from morning still cant setup any PHP framework... :x
     
    shubhamjain, Jun 4, 2010 IP
  13. saviola

    saviola Peon

    Messages:
    17
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #13
    You are completely right!

    JQuery isn't like PHP Framework (ZendFramework, CakePHP, Symfony..), it is a just new kind of JavaScript Library. Rather JQuery is equivalence of PEAR(htttp://pear.php.net/) in PHP.
    If you want learn more about JavaScript Framewark you should read about JavaScript MVC (htttp://www.alistapart.com/articles/javascript-mvc/). There is a lot of information about that how to organize our JavaScript framework.

    About working with PHP framework, my recommendation is to use Zend Framework, because it is created, maintained and developed by the company behind PHP (behind PHP's core - Zend Engine and Zend Technologies) and because it is powerful and have a good documentation.
     
    saviola, Jun 4, 2010 IP
  14. pipes

    pipes Prominent Member

    Messages:
    12,766
    Likes Received:
    958
    Best Answers:
    0
    Trophy Points:
    360
    #14
    Do you use Zend Framework yourself?
     
    pipes, Jun 7, 2010 IP
  15. saviola

    saviola Peon

    Messages:
    17
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Do I have worked on several projects. It is difficult to know all the functionality but once absorbed thing gives you great advantage and saves time.
     
    saviola, Jun 7, 2010 IP