PHP Web Development with Laminas: Build a fully secured and functional e-commerce application with PHP using the Laminas framework
by Flavio Gomes da Silva Lisboa,Enrico Zimuel (Foreword)
Publisher finelybook 出版社: Packt Publishing (November 18, 2022)
Language 语言: English
Print Length 页数: 394 pages
ISBN-10: 1803245360
ISBN-13: 9781803245362
Book Description
Learn how to develop modern object-oriented applications with PHP using test-driven development (TDD) and behavior-driven development (BDD) aided by mature reusable components
Key Features
Create clean code based on components’ reusability to create large-scale enterprise applications
Make effective use of design patterns in an object-oriented software
Understand the division of a PHP web application structure in layers to build customized websites and apps for various business needs
Book Description
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.
What you will learn
Discover how object-relational mapping is implemented with laminas-db
Understand behavior-driven development concepts to sharpen your skills
Create lean controllers and flexible views
Build complete models and reusable components
Explore the Eclipse platform for developing with Laminas
Find out how easy it is to generate HTML forms with laminas-form
Practice test-driven development to write precise programs
Who this book is for
This book is best suited for programming beginner or developers with some experience looking to create clean-coded object-oriented web applications. Knowledge of basic PHP syntax, specifically variables, control structures, and functions, will aid you in understanding the concepts covered.
Table of Contents
Introducing Laminas for PHP Applications
Setting Up the Environment for Our E-Commerce Application
Using Laminas as a Library with Test-Driven Development
From Object-Relational Mapping to MVC Containers
Creating the Virtual Store Project
Models and Object-Relational Mappers with Behavior-Driven Development
Request Control and Data View
Creating Forms and Implementing Filters and Validators
Event-Driven Authentication
Event-Driven Authorization
Implementing a Product Basket
Reviewing and Improving Our App
Tips and Tricks
Last Considerations