Mastering Test-Driven Development with PHP 8
eBook - ePub

Mastering Test-Driven Development with PHP 8

Building secure and reliable PHP 8 applications through TDD, design patterns, and functional data handling (English Edition)

  1. English
  2. ePUB (mobile friendly)
  3. Available on iOS & Android
eBook - ePub

Mastering Test-Driven Development with PHP 8

Building secure and reliable PHP 8 applications through TDD, design patterns, and functional data handling (English Edition)

About this book

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

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Mastering Test-Driven Development with PHP 8 by Dr. Flávio Gomes da Silva Lisboa in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming in PHP. We have over one million books available in our catalogue for you to explore.

Information

Table of contents

  1. Cover
  2. Title Page
  3. Copyright Page
  4. Dedication Page
  5. About the Author
  6. About the Reviewers
  7. Acknowledgement
  8. Preface
  9. Table of Contents
  10. 1. Meeting and Installing PHP
  11. 2. PHP Foundations
  12. 3. Function Driven Registration with File System Storage
  13. 4. Function Driven Registration with Relational Database Storage
  14. 5. Function Driven Registration with Document Database Storage
  15. 6. PHP OOP
  16. 7. Object-oriented Registration with File System Storage
  17. 8. Object-oriented Registration with Relational Database Storage
  18. 9. Object-oriented Registration with Document Database Storage
  19. 10. Abstracting the Application Storage
  20. 11. Refactoring the Application with Secure Development
  21. 12. Authentication and Authorization
  22. Index