Category: PHP

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 ...
 

Zip Code Web Service Updates

I have updated the zip code web service to fix some issues with the data returned from getLocalTime. Prior to this fix, only the 12 hour format was displayed without the proper meridiem (AM or PM). The time was also off by one hour. This fix adds two additional children: currentMilitaryTime – The 24 hour [...]

Read More ...
 

The Zend Certification Exam: What to Expect

The Zend Certification Exam is a step in the right direction for PHP developers looking to enhance their resume and prove their skills. It is becoming accepted by recruiters worldwide and in some cases, demanded by corporations seeking employees. Achieving this certification is no easy task, though. It requires working experience with PHP, as well [...]

Read More ...
 

Using PHP Namespaces

PHP 5.3 introduces a much requested feature for object-oriented programmers: namespaces. At the time of this writing, version 5.3 of PHP was in development, but is planned on being released in the near future. One of the purposes object-oriented programming is to remove ambiguous development and data access items. This basically means identifying common functionality [...]

Read More ...