In this sixth part of the series, I start using all of the sample classes defined previously to create a basic user repository class. The partial construction of this class calls for some extra work, such as defining a repository factory. The development process, as you'll see, is pretty straightforward, and shows how useful this kind of abstraction layer can be for concentrating querying code behind an intuitive API.


Read the full article here: Roll Your Own Repository in PHP: Building a User Repository Class

For more discussion go here: Blog Article Discussion