The Iterator Pattern: OOP Techniques in PHP

The iterator pattern is one of the most useful, yet unused patterns defined. It provides a way for class users to count and iterate over a set of objects related to the class. This is very useful in MVC (Model-View-Controller) models as they handle data and the logic that pertains to it.

Read More ...
 

The Factory Pattern: OOP Techniques in PHP

The purpose of the factory pattern is to assist with maintaining loose coupling. Code that is tightly coupled is error prone in that if a class is changed, it can have a domino affect to other scripts using it. This is typical to large-scale systems and smaller systems that grow very fast.

Read More ...
 

The Singleton Pattern: OOP Techniques in PHP

The singleton pattern is a common pattern used to make resources exclusive in that there is one of a particular type of resource. The most common usage of this is database connectivity. Typically, an application only wants a single connection to a single database server at any given time. This is where the singleton pattern comes in.

Read More ...
 

March Nashville PHP Users Group Meeting

The March Nashville PHP Users Group meeting details are now available. Shawn McCool will be presenting the CodeIgniter PHP Framework. The meeting will be at 1pm CST at Corky’s Brentwood. For additional details, please visit http://www.meetup.com/nashville-php/calendar/9769825/.

Read More ...
 

PHP 5.2.9 Released

PHP has announced the release of 5.2.9. To download this release, visit http://www.php.net/archive/2009.php#id2009-02-26-1.

Read More ...