PHP 面向对象程序设计资源

面向对象程序设计和PHP
PHP从纯过程化的语言进化而来,面向对象和面向过程在其中和谐共存。许多PHP开发者先学习过程化的风格,网络上很多和PHP相关的资料都着眼于这点。下面是一些为希望使用OOP的PHP开发者精选的资料。
PHPOOP阅读材料精选 

Object Oriented PHP: Paging Result Sets
Kevin Yank 提供了一个关于PHP中的OOP的实用的(也是和PHP相关的)介绍。他的出发点是使用比学习更有效。

Object Oriented PHP
基于通用OOP理论的关于PHP4对象模型直截了当的讨论,强调了PHP开发者将涉及到的所有重点和例子。
– Introduction to PHP Objects Part 1 and Part 2
John Coggeshall 提供了严格意义上的PHP中的OOP的概观。

Object Oriented Programming in PHP: The way to large PHP projects
Luis Argerich 的关于PHP中OOP的概观。它将适用于已经在其它语言中使用OOP的开发者。第一批关注PHP中的OOP的文章之一(如果不是第一篇的话)。
– Using Objects to Create an Application Part 1 and Part 2
PHP的OOP介绍,通过一个简单的例子实现。学以致用。
– PHP(4) References explained
PHP4: Reference Counting and Aliasing
PHP(4) and Variable References
解释PHP4中引用如何工作的文章(PHP5中不再有效,或多或少的)
PHP (4) Static Class Variables
如何用PHP模拟静态类变量 

(more to come)

Design Patterns
About design patterns

Pattern Repositories

phpPatterns

Sun Java Center – J2EE Patterns

.NET Architecture Center

Objectmonkey
通用,但是一般使用PHP作演示。

Patterns Central

Patterns in PHP (selected online articles)

Core Patterns
来自GOF

The Singleton

The Strategy Pattern

Adapter and Proxy Patterns

The Observer Pattern

The Factory Method

The Iterator Pattern

The Decorator Pattern

The Command Pattern
这篇文章还可以改进

The Template Method (in PHP5)

Enterprise Patterns
Patterns with direct relevance to web applications

Industrial Strength MVC
实例中的MVC,使用PHP和Phrame

MVC
实现范例

Simple MVC Examples
9 – 11页 – 可能是用PHP写成的最简单的例子了。

Model View Controller
简短的讨论。

Front Controller
一般性的讨论和从PHP出发的讨论。

The Front Controller and PHP
用PHP实现front controllers的相关问题。

Front Controller / Command
讨论和PHP实现

The Registry
如何避免全局变量

The DAO Pattern
数据访问对象Data Access Objects

Incepting Filter
一般性的讨论和从PHP出发的讨论。

Intercepting Filters
更多的讨论和实现示例

Template View
 Template view的学习 (如 templates) 着眼于PHP和其他语言之间的不同方法

Page Controller
简短的讨论

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据