#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2013
    Posts
    2
    Rep Power
    0

    Question Compare the difference between a framwork php and php


    Hello,

    I wanted to know more of a difference between a framework php and a php itself.
  2. #2
  3. No Profile Picture
    Super Moderator
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jul 2003
    Posts
    4,007
    Rep Power
    2791
    [PHP] | [Perl] | [Python] | [Java] != [JavaScript] | [XML] | [ANSI C] | [C++] | [LUA] | [MySQL] | [FirebirdSQL] | [PostgreSQL] | [HTML] | [XHTML] | [CSS]

    W3Fools - A W3Schools Intervention.
  4. #3
  5. No Profile Picture
    Permanently Banned
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2013
    Posts
    23
    Rep Power
    0
    A PHP Framework is a basic platform that allows us to develop web applications. In other words, it provides structure. By using a PHP Framework, you will end up saving loads of time, stopping the need to produce repetitive code, and you'll be able to build applications rapidly (RAD). Without a PHP Framework in place, it gets much more difficult to produce applications since you'll have to repeatedly code a lot of PHP. You'll also have to execute the connection between your database and whatever application you develop from scratch. Meanwhile, using a PHP Framework makes it easier for you to ensure this connection.

    Best example to differenciate core php & php framework-----
    Working out mathematics in a paper is like coding in Core PHP, tapping a scientific calculator is like coding in Framework.
  6. #4
  7. No Profile Picture
    Dazed&Confused
    Devshed Novice (500 - 999 posts)

    Join Date
    Jun 2002
    Location
    Tempe, AZ
    Posts
    506
    Rep Power
    128
    Frameworks will provide you a means to structure your code and often provide you tools to expedite common functions.

    That said, the added structure can also mean reduced flexibility. One of PHP's strengths (and weaknesses) is its loose structure and how it lets a developer choose how to do things. Adopting a framework can very much be a sacrifice of that freedom.

    If you plan to go with PHP for a long time and want to become very familiar with it then I'd suggest not using a framework. It'll hide a lot of PHP's quirks far away and you won't have the opportunity to learn how to deal with them. You also won't be able to learn best practices by doing.

    I've used PHP for almost 10 years and have never used a major framework, but have instead begun to build my own based on my own experiences--and generally less bloated than what I've seen of Zend.
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2013
    Posts
    2
    Rep Power
    0
    Thank you to all for your explanations!!
    I've more or less understand what it is capable to do. But it seems like it's quite hard to switch from php to framework php. somehow i feel that php is more easier than a framework php... even though there's redundancy .
  10. #6
  11. No Profile Picture
    Permanently Banned
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2013
    Posts
    23
    Rep Power
    0
    Working out mathematics in a paper is like coding in Core PHP, tapping a scientific calculator is like coding in Framework.

    Comments on this post

    • paulh1983 disagrees : i disagree. you code in both PHP & Framework, it is just the WAY you code is different
  12. #7
  13. No Profile Picture
    Dazed&Confused
    Devshed Novice (500 - 999 posts)

    Join Date
    Jun 2002
    Location
    Tempe, AZ
    Posts
    506
    Rep Power
    128
    Originally Posted by johnmacd
    Working out mathematics in a paper is like coding in Core PHP, tapping a scientific calculator is like coding in Framework.
    Given the limits to design flexibility imposed by the frameworks I've encountered, I'd interestingly say the exact opposite.

    ... and the paper has lines that you have to write between.
  14. #8
  15. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2013
    Posts
    14
    Rep Power
    0
    hi dude

    Here is a simple and the perfect answer for Your Query


    Frameworks Php

    Frameworks are time-saver, assures reliability and consistency. The rich set of functionalities available in it makes sure that a web developer does not have to embed codes again n' again while these rich set of functionalities are enough for you to develop a healthy PHP web application.

    PHP core

    PHP Framework enables the best team coordination by making the code understandable, irrespective of the developer and as a result the entire module can be integrated just like that!
  16. #9
  17. No Profile Picture
    Contributing User
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Dec 2004
    Posts
    2,969
    Rep Power
    374
    i wouldnt say frameworks are a time saver? they make you re-think how you normally write your code, there is an overhead of learning a framework too. A framework is not necessarily "reliable" I mean each framework has different benefits/drawbacks.

    Using a framework like zend (which i believe has lots of functionalities which you will never use, will create extra delays in your site execution time
  18. #10
  19. No Profile Picture
    Dazed&Confused
    Devshed Novice (500 - 999 posts)

    Join Date
    Jun 2002
    Location
    Tempe, AZ
    Posts
    506
    Rep Power
    128
    Originally Posted by Lovisa Jeeni
    Frameworks are time-saver, assures reliability and consistency.
    So do coding standards, which a person or department should maintain regardless of utilizing a Framework. I won't dispute that Frameworks help achieve those goals, but they do so by force, by restricting the flexibility of the developers.

    The rich set of functionalities available in it makes sure that a web developer does not have to embed codes again n' again
    Those are called functions. Or if you're ambitious: objects and methods. You don't need a Framework to create those, yourself.

    PHP Framework enables the best team coordination by making the code understandable, irrespective of the developer and as a result the entire module can be integrated just like that!
    Even if you're using a framework, that's just attached to your custom business logic. It's that custom business logic that the developers will be primarily present in and there, like always, it's up to the developers to properly format code, follow established standards, comment appropriately, etc. A Framework isn't going to do that for you. Their editor's going to have more influence on that than a framework will.

    But then... I'm not even sure I'm replying to an actual person. That post seemed somewhat bot'ish...

    Originally Posted by paulh1983
    i wouldnt say frameworks are a time saver? they make you re-think how you normally write your code, there is an overhead of learning a framework too. A framework is not necessarily "reliable" I mean each framework has different benefits/drawbacks.
    Then you get trapped in situations like having to upgrade from Zend 1 to Zend 2 because they're due to discontinue all support of Zend 1 next year. They went and made ZF2 completely different than ZF1, requiring people to basically learn it from scratch.

    In theory, if everyone knew a framework then it might save time, and a department could handle employee turnover without issue. But not everyone knows every framework. So making that a requirement for employment is only limiting candidates, which is not in the best interest of a company. And if that company finds itself having to lose time as all their employees have to learn the next big version of the framework, well... I'd say the framework just lost all its business value.

    I'd much prefer to build a well documented and maintained internal framework as needed; the right tool for the right job, with instructions on how to use it. Coupled with enforced code standards, there's absolutely no need for a megaton third-party framework.

IMN logo majestic logo threadwatch logo seochat tools logo