Re: Beginner Question: Define PHP "framework" for me



Scott Auge wrote:

> In article <dbhg2s$q30$1@xxxxxxxxxxxxxxxx>, adykes@xxxxxxxxx (Al Dykes)
> wrote:
>
>> I've just grabbed a PHP book and can deal with the syntax and now I
>> need to decide to learn specific packages and features.
>>
>> Define "framework".
>>
>
> A frame work is a set of classes that can be used to perform the more
> mundane manipulations of the data in your application.
>

Dunno about a 'frame work' but a framework is more loosely defined than
that. It's merely a library of code and data structures and typically some
rules about how to use them which make developing applications easier and
more consistent. Really the term is rather mis-applied in PHP since it
refers to a system which you embed your own code into (rather than a set of
functions/classes accessed bound together by your code).

Mixing 'frameworks' is obviously inappropriate given the more correct
definition. The approach taken by most PHP framework developers should make
it possible to mix and match however most try to comprehensive so there
will be a lot of overlap. PEAR (which I don't think describes itself as a
framework) could be used with other libraries.

Frameworks typicaaly provide facitilities for
- templating
- navigation
- access control
- database abstraction

HTH

C.

.



Relevant Pages

  • Re: Traps and pitfalls when writing web apps?
    ... that most people writing PHP are using it just to pep up ... you probably need an application framework with a good metaphor behind it. ... It'd be even better if they have examples in PHP, ... It deals with database transactions, handles the back button, has a dynamic menu system, role based access control system, audit logging without database triggers, a data dictionary, and a workflow engine. ...
    (comp.lang.php)
  • Re: Traps and pitfalls when writing web apps?
    ... that most people writing PHP are using it just to pep up ... you probably need an application framework with a good metaphor behind it. ... It'd be even better if they have examples in PHP, ... It deals with database transactions, handles the back button, ...
    (comp.lang.php)
  • Re: [PHP] Best open source project/framework to support a php training course?
    ... argue over whether it is a framework), Solar, CakePHP, Symfony, Zend's, ... Drupal contributor because of how good a system it is.) ... It's not for the first time PHP ... PHP 5) before introducing advanced topics like magic object callback ...
    (php.general)
  • Re: Open Project
    ... A light generic framework for php developers, built API style with a public interface and a private interface. ... PDO/Doctrine + contrib to doctrine project as well OR custom ORM built on top of PDO. ... Object to XML and XML to Object support, aim to add __toXMLfor all classes. ...
    (php.general)
  • RE: [PHP] Re: Open Project
    ... opensource and in PHP. ... framework, orm, webservice or basically anything without an html ... ORM built on top of PDO. ... Generic XML Parser using DOM API ...
    (php.general)