Mastering Test-Driven Development with PHP 8: Building secure and reliable PHP 8 applications through TDD, design patterns, and functional data handling

Mastering Test-Driven Development with PHP 8: Building secure and reliable PHP 8 applications through TDD, design patterns, and functional data handling (English Edition)

Mastering Test-Driven Development with PHP 8: Building secure and reliable PHP 8 applications through TDD, design patterns, and functional data handling (English Edition)

Author: Dr. Flávio Gomes da Silva Lisboa (Author)

Publisher finelybook 出版社:‏ BPB Publications

Publication Date 出版日期: 2025-05-21

Language 语言: English

Print Length 页数: 440 pages

ISBN-10: 9365892007

ISBN-13: 9789365892000

Book Description

Description

In today’s fast-paced development landscape, ensuring code quality and bug-free software through testing is essential. This book is your practical guide to mastering test-driven development (TDD) in the PHP 8 ecosystem, empowering you to write better code from the very beginning.

Embark on a structured learning journey, starting with setting up your PHP 8 testing environment and understanding the core principles of TDD using PHPUnit and Composer. You will then learn about writing tests for fundamental PHP concepts, including functions, file system operations, array handling, and web interactions like forms and sessions. Through the practical exercise of building a book registration application, you will learn to apply TDD with different data storage solutions, from simple file systems to relational databases (MySQL) and document databases (MongoDB). Progressing further, you will discover how to implement TDD in object-oriented PHP 8, covering design patterns, database interactions with PDO, API development, and even exploring testing considerations for security, authentication, and authorization.

By the end of this book, you will possess the skills and confidence to implement TDD effectively in your PHP 8 projects. This book equips you with the skills to write cleaner, more maintainable code, and ultimately leads to more stable and maintainable applications, making you a highly competent PHP 8 developer.

What you will learn

● The foundations of PHP programming and TDD.

● Master core PHP 8 syntax, functions, and web handling.

● Create applications based on SQL and NoSQL databases.

● Apply PHP 8 OOP, design patterns, PDO, and REST API basics.

● Abstract storage, secure code, and implement authentication/authorization.

Who this book is for

This book is for PHP developers, including beginners with basic PHP syntax knowledge, and intermediate developers seeking to adopt TDD and improve their application architecture. Familiarity with fundamental web development concepts will be beneficial for understanding the practical examples.

Table of Contents

1. Meeting and Installing PHP

2. PHP Foundations

3. Function Driven Registration with File System Storage

4. Function Driven Registration with Relational Database Storage

5. Function Driven Registration with Document Database Storage

6. PHP OOP

7. Object-oriented Registration with File System Storage

8. Object-oriented Registration with Relational Database Storage

9. Object-oriented Registration with Document Database Storage

10. Abstracting the Application Storage

11. Refactoring the Application with Secure Development

12. Authentication and Authorization

About the Author

Dr. Flávio Gomes da Silva Lisboa holds a PhD and a master’s degree in social studies of science and technology from the Federal Technological University of Paraná. He holds a degree in computer science with a specialization in object-oriented programming and Java technology. Flávio is a certified software architect and engineer from Zend Technologies. He works as a technology analyst for the Brazilian Federal Data Processing Service (serpro), the largest public information technology company in Latin America, building and maintaining applications for cross-platform services. At Serpro, Flávio coordinated a corporate program to promote free and open-source software, worked on the review of systems architecture for the Presidency of the Republic and the Ministry of Justice of Brazil, was head of the solution adaptation and mobility sector and architect of the ExpressoV3 project, and worked with support for the PHP programming language, behavior-oriented development, NoSQL databases, log analysis, and detection of bot attacks. He has experience in software development with emphasis for free and open-source software. FGSL is interested mainly in software architecture, area where he has experience in working with reuse, patterns, and frameworks. He has been a speaker in PHP Conference Brazil for more than a decade and was honored by the event organization with a permanent room, alongside great members of the PHP Brazil community, as Elton Minetto, Guilherme Blanco, Ricardo Coelho, Rafael Dohms and Er Galvão. Flávio is also a professor at Centro Paula Souza, a network of colleges and technical schools, where he teaches systems analysis and design, web programming, and databases. Flávio is the author of the book Laminas Web Development, a complete guide about a PHP framework of the Linux Foundation. He also writes science fiction and in this segment, he has published the novels The One: the Solitude and the Harmony; Pandino, the Emperor: the Revenge of the One; and Freedom or Equality.

Amazon Page

下载地址

PDF, (conv), EPUB | 12 MB | 2025-06-22
下载地址 Download解决验证以访问链接!
打赏
未经允许不得转载:finelybook » Mastering Test-Driven Development with PHP 8: Building secure and reliable PHP 8 applications through TDD, design patterns, and functional data handling

评论 抢沙发

觉得文章有用就打赏一下

您的打赏,我们将继续给力更多优质内容

支付宝扫一扫

微信扫一扫