Modular Programming with PHP 7

Utilize the power of modular programming to improve code readability, maintainability, and testability

Modular Programming with PHP 7

This ebook is included in a Mapt subscription
Branko Ajzele

1 customer reviews
Utilize the power of modular programming to improve code readability, maintainability, and testability
$10.00
$49.99
RRP $39.99
RRP $49.99
eBook
Print + eBook
Access every Packt eBook & Video for just $100
 
  • 4,000+ eBooks & Videos
  • 40+ New titles a month
  • 1 Free eBook/Video to keep every month
Find Out More
 
Preview in Mapt

Book Details

ISBN 139781786462954
Paperback332 pages

Book Description

Modular design techniques help you build readable, manageable, reusable, and more efficient codes. PHP 7, which is a popular open source scripting language, is used to build modular functions for your software. With this book, you will gain a deep insight into the modular programming paradigm and how to achieve modularity in your PHP code.

We start with a brief introduction to the new features of PHP 7, some of which open a door to new concepts used in modular development. With design patterns being at the heart of all modular PHP code, you will learn about the GoF design patterns and how to apply them. You will see how to write code that is easy to maintain and extend over time with the help of the SOLID design principles.

Throughout the rest of the book, you will build different working modules of a modern web shop application using the Symfony framework, which will give you a deep understanding of modular application development using PHP 7.

Table of Contents

Chapter 1: Ecosystem Overview
Getting ready for PHP 7
Summary
Chapter 2: GoF Design Patterns
Creational patterns
Structural patterns
Behavioral patterns
Summary
Chapter 3: SOLID Design Principles
Single responsibility principle
Open/closed principle
Liskov substitution principle
Interface Segregation Principle
Dependency inversion principle
Summary
Chapter 4: Requirement Specification for a Modular Web Shop App
Defining application requirements
Wireframing
Defining a technology stack
Summary
Chapter 5: Symfony at a Glance
Installing Symfony
Creating a blank project
Using Symfony console
Controller
Routing
Templates
Forms
Configuring Symfony
The bundle system
Databases and Doctrine
Testing
Validation
Summary
Chapter 6: Building the Core Module
Requirements
Dependencies
Implementation
Unit testing
Functional testing
Summary
Chapter 7: Building the Catalog Module
Requirements
Dependencies
Implementation
Unit testing
Functional testing
Summary
Chapter 8: Building the Customer Module
Requirements
Dependencies
Implementation
Unit testing
Functional testing
Summary
Chapter 9: Building the Payment Module
Requirements
Dependencies
Implementation
Unit testing
Functional testing
Summary
Chapter 10: Building the Shipment Module
Requirements
Dependencies
Implementation
Unit testing
Functional testing
Summary
Chapter 11: Building the Sales Module
Requirements
Dependencies
Implementation
Unit testing
Functional testing
Summary
Chapter 12: Integrating and Distributing Modules
Understanding Git
Understanding GitHub
Understanding Composer
Understanding Packagist
Summary

What You Will Learn

  • Discover the new features of PHP 7 that are relevant to modular application development
  • Write manageable code based on the GoF design patterns and SOLID principles
  • Define the application requirements of a working modular application
  • Explore the ins and outs of the Symfony framework
  • Build a set of modules based on the Symfony framework that comprise a simple web shop app
  • Use core modules to set the structure and dependencies for other modules to use
  • Set up entities that are relevant to the module functionality and see how to manage these entities

Authors

Table of Contents

Chapter 1: Ecosystem Overview
Getting ready for PHP 7
Summary
Chapter 2: GoF Design Patterns
Creational patterns
Structural patterns
Behavioral patterns
Summary
Chapter 3: SOLID Design Principles
Single responsibility principle
Open/closed principle
Liskov substitution principle
Interface Segregation Principle
Dependency inversion principle
Summary
Chapter 4: Requirement Specification for a Modular Web Shop App
Defining application requirements
Wireframing
Defining a technology stack
Summary
Chapter 5: Symfony at a Glance
Installing Symfony
Creating a blank project
Using Symfony console
Controller
Routing
Templates
Forms
Configuring Symfony
The bundle system
Databases and Doctrine
Testing
Validation
Summary
Chapter 6: Building the Core Module
Requirements
Dependencies
Implementation
Unit testing
Functional testing
Summary
Chapter 7: Building the Catalog Module
Requirements
Dependencies
Implementation
Unit testing
Functional testing
Summary
Chapter 8: Building the Customer Module
Requirements
Dependencies
Implementation
Unit testing
Functional testing
Summary
Chapter 9: Building the Payment Module
Requirements
Dependencies
Implementation
Unit testing
Functional testing
Summary
Chapter 10: Building the Shipment Module
Requirements
Dependencies
Implementation
Unit testing
Functional testing
Summary
Chapter 11: Building the Sales Module
Requirements
Dependencies
Implementation
Unit testing
Functional testing
Summary
Chapter 12: Integrating and Distributing Modules
Understanding Git
Understanding GitHub
Understanding Composer
Understanding Packagist
Summary

Book Details

ISBN 139781786462954
Paperback332 pages
Read More
From 1 reviews

Read More Reviews