Chapter 8. Building the Customer Module

The customer module provides a basis for further sales functionality of our web shop. At the very basic level, it is responsible for register, login, management and display of relevant customer information. It is a requirement for the later sales module, that adds the actual sales capabilities to our web shop application.

In this chapter we will be covering following topics:

  • Requirements
  • Dependencies
  • Implementation
  • Unit testing
  • Functional testing

Requirements

Following the high level application requirements, defined under Chapter 4, Requirement Specification for Modular Web Shop App, our module will have a single Customer entity defined.

The Customer entity includes the following properties:

  • id: integer, auto-increment ...

Get Modular Programming with PHP 7 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.