background preloader

PHP

Facebook Twitter

MapReduce

Bcosca/fatfree. Five common PHP design patterns. Editor's note: See the follow-up article "Five more PHP design patterns" to learn about five additional design patterns that you might find useful.

Five common PHP design patterns

Design patterns were introduced to the software community in Design Patterns, by Erich Gamma, Richard Helm, Ralph Johnson, and John Vlissides (colloquially known as the "gang of four"). The core concept behind design patterns, presented in the introduction, was simple. Over their years of developing software, Gamma et al found certain patterns of solid design emerging, just as architects designing houses and buildings can develop templates for where a bathroom should be located or how a kitchen should be configured. Having those templates, or design patterns, means they can design better buildings more quickly. The same applies to software. Using PHP and XSL to Transform XML into Web Content. Intended AudienceOverviewLearning ObjectivesBackground InformationDefinitionsSimplified DocBookPrerequisites How it works - Creating the XML File - The Simplified DocBook Structure - Creating the XSL Template - Fundamental XSL ElementsPutting it all together - Automatically save the results to a file - Returning the results as a string - Providing and returning stringsThe ScriptAbout the Author.

Using PHP and XSL to Transform XML into Web Content

PHP on Mac OS X.