Mastering Test-Driven Development with PHP 8: Building secure and reliable PHP 8 applications through TDD, design patterns
- Добавил: literator
- Дата: Вчера, 07:33
- Комментариев: 0

Автор: Flávio Gomes da Silva Lisboa
Издательство: BPB Publications
Год: 2025
Страниц: 440
Язык: английский
Формат: True/Retail EPUB
Размер: 10.1 MB
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.
The Chapter 1 of the book will cover the definition of PHP, how it works, and how we can create an environment to work with that programming language. We will start with an overview of the creation and evolution of PHP, then we will explain the structure of its community and how it is organized. We will also explain how to install PHP on a real machine with multiple options, from the simplest to the hardest way. Afterward, we will learn how to create a virtualized development environment for PHP. Finally, we will show how to prepare the environment for working with a test-driven development approach, which we will use in the next chapters. At the end of this chapter, you will be able to understand what is PHP and how to install it for developing backend applications.
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.
Contents:
Скачать Mastering Test-Driven Development with PHP 8: Building secure and reliable PHP 8 applications through TDD, design patterns

[related-news] [/related-news]
Внимание
Уважаемый посетитель, Вы зашли на сайт как незарегистрированный пользователь.
Мы рекомендуем Вам зарегистрироваться либо войти на сайт под своим именем.
Уважаемый посетитель, Вы зашли на сайт как незарегистрированный пользователь.
Мы рекомендуем Вам зарегистрироваться либо войти на сайт под своим именем.