News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Paul Jones' Blog:
Include-Based vs Class-Based Architecture
March 14, 2011 @ 09:14:21

Paul Jones has a new post to his blog looking at two approaches to building applications in PHP - either using an include-based of class-based architecture, briefly looking at the advantages and disadvantages of each.

This is a topic I describe at length in my Organizing [Your PHP Projects] talk, but I would like to give the idea a home on my blog for easy reference.

He talks about the typical structure of a PHP application - at least where most start out - being the "include" method. He talks about the progression it usually makes into functions and classes and then, eventually, a jump in concept to the "class" method similar to what several popular frameworks have gone with.

The difference is that no program logic is executed at loading time with a class file. Loading the class file makes it available for use, but the programmer has to instantiate it and then call methods on it for anything else to happen.
0 comments voice your opinion now!
include class architecture organize project


blog comments powered by Disqus

Similar Posts

Simon Holywell: Idiorm and Paris 1.3.0 released - the minimalist ORM and fluent query builder for PH

Zend Developer Zone: Microsoft's second SQL Server Jump In Camp

William Candillon's Blog: The new release of phpAspect is coming soon

EllisLab.com: EllisLab Seeking New Owner for CodeIgniter

Hannes Magnusson's Blog: The PHP project and Code Review


Community Events





Don't see your event here?
Let us know!


code podcast language unittest series testing list opinion laravel refactor threedevsandamaybe release framework interview introduction community configure developer symfony2 install

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework