Book Image

PHP Web Development with Laminas

By : Flávio Gomes da Silva Lisboa
4.5 (2)
Book Image

PHP Web Development with Laminas

4.5 (2)
By: Flávio Gomes da Silva Lisboa

Overview of this book

Considered the next generation of the Zend framework, Laminas is a high-performance PHP framework for creating powerful web applications with an evolutive architecture. This book takes a hands-on approach to equip you with the knowledge of the Laminas framework necessary to start building web applications based on the reuse of loosely coupled components. You'll learn how to create the basic structure of a PHP web application divided into layers, understand Laminas’ MVC components, and be able to take advantage of the Eclipse platform as a method for developing with Laminas. Step by step, you'll build an e-commerce application based on the technical requirements of a fictional business, and get to grips with implementing those requirements using Laminas components. By the end of this web development book, you’ll be able to build a completely secured MVC application in PHP language using Laminas.
Table of Contents (20 chapters)
1
Part 1: Technical Background
6
Part 2: Creating an E-Commerce Application
13
Part 3: Review and Refactoring

What this book covers

Chapter 1, Introducing Laminas for PHP Applications, presents the evolution of the architecture of Zend Framework up until it changed to Laminas, and discusses the lessons learned.

Chapter 2, Setting Up the Environment for Our E-Commerce Application, sees us set up the development environment for the example application that we will be building throughout this book.

Chapter 3, Using Laminas as a Library with Test-Driven Development, explains, using a simple example based on a reduced use case, how it is possible to use only one Laminas component in an existing PHP application.

Chapter 4, From Object-Relational Mapping to MVC Containers, covers the handling of databases with object-relational mapping, abstracting SQL statements, and the inversion of control for object-oriented PHP applications with the Laminas framework as a container.

Chapter 5, Creating the Virtual Store Project, presents the requirements of the e-commerce project we plan to build.

Chapter 6, Models and Object-Relational Mappers with Behavior-Driven Development, is where we use laminas-db for mapping the entity-relationship model to an object model. We also learn how to create models using the behavior-driven development approach.

Chapter 7, Request Control and Data View, shows how to use the Laminas implementations for the controller and view layers in an MVC application.

Chapter 8, Creating Forms and Implementing Filters and Validators, introduces some Laminas components for handling data input.

Chapter 9, Event-Driven Authentication, covers one of the essential topics for developing secure applications: authentication.

Chapter 10, Event-Driven Authorization, covers another one of the essential topics for developing secure applications: authorization.

Chapter 11, Implementing a Product Basket, describes the implementation of a product basket, an essential component of a virtual store.

Chapter 12, Reviewing and Improving Our App, is dedicated to reviewing and improving the sample e-commerce application.

Chapter 13, Tips and Tricks, provides some tips and tricks that will help you as a developer to solve some problems that can eventually appear when constructing a web application.

Chapter 14, Last Considerations, delivers the conclusion of the book, outlining the possibilities that lie ahead with other components not used in our sample applications.