The factory design pattern enables the creation of new objects without having the need to specify the classes that should be instantiated. The following video clip explains this pattern and overviews a sample for its implementation in PHP.

The source code is available for free download in my PHP Design Patterns course at www.abelski.org.

Leave a Reply

Your email address will not be published. Required fields are marked *