The PHP community has long debated the best solution for database interactions. Using an ORM with Active Record or the Data Mapper Pattern is a common solution, but each comes with nuances. Come learn all about another practical approach by using the Repository Pattern for a clean solution to this common problem. Dive into using a supporting cast of Services, Entities, Value Objects, and more to find an alternative to the data persistence problem. Discuss technical pros and cons as implementation strategies are explored.

Comments

Comments are closed.

Greg Fox at 11:00 on 25 Apr 2024

Great talk that makes the pattern easier to understand. I have been using it but didn't really see all the benefits till now.

Eric Mann at 12:01 on 25 Apr 2024

I actually learned the repository pattern before I was introduced to ActiveRecord and ... I've never understood why the latter is so popular. Having a deeper walkthrough of the pattern I both love and use was still helpful as it still helped me learn a few things.

Will definitely revisit this talk to see how I can incorporate this pattern into my projects.

Jack Naughton at 14:39 on 25 Apr 2024

Excellent talk that was opinionated with reason.
As a noobie, I would like to see a (contrived) example to go along with the diagrams of entities vs data layer, etc.