© Matt Zandstra 2021
M. ZandstraPHP 8 Objects, Patterns, and Practicehttps://doi.org/10.1007/978-1-4842-6791-2_13

13. Database Patterns

Matt Zandstra1  
(1)
Brighton, UK
 

Most web applications of any complexity handle persistence to a greater or lesser extent. Shops must recall their products and their customer records. Games must remember their players and the state of play. Social networking sites must keep track of your 238 friends and your unaccountable liking for boy bands of the 1980s and 1990s. Whatever the application, the chances are it’s keeping score behind the scenes. In this chapter, I look at some patterns that can help.

This chapter will cover the following:
  • The data layer interface: Patterns that define the points of contact between the ...

Get PHP 8 Objects, Patterns, and Practice: Mastering OO Enhancements, Design Patterns, and Essential Development Tools now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.