4
From Object-Relational Mapping to MVC Containers
This chapter continues to prepare you to use Laminas. Here, we will go through the last two stages:
- The handling of databases with object-relational mapping (ORM), abstracting SQL statements
- The inversion of control for object-oriented PHP applications with the Laminas framework as a container
First, we will explain the foundations of ORM implemented with the aid of laminas-db
. Then, we will introduce you to the basics of Laminas by building an MVC application. These foundations are very important for the creation of an e-commerce application and learning them will be invaluable. You could jump to Chapter 5, Creating the Virtual Store Project, but you may feel like you are trying to attack the Death Star in a hang glider. Keep calm and prepare yourself for battle.
In this chapter, we’ll be covering the following topics:
- Using ORM
- Use case – managing students
- Using Laminas...