Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Test-Driven Development with PHP 8
Test-Driven Development with PHP 8

Test-Driven Development with PHP 8: Build extensible, reliable, and maintainable enterprise-level applications using TDD and BDD with PHP

Arrow left icon
Profile Icon Rainier Sarabia
Arrow right icon
zł59.99 zł135.99
Full star icon Full star icon Full star icon Full star icon Half star icon 4.6 (5 Ratings)
eBook Jan 2023 336 pages 1st Edition
eBook
zł59.99 zł135.99
Paperback
zł169.99
Subscription
Free Trial
Arrow left icon
Profile Icon Rainier Sarabia
Arrow right icon
zł59.99 zł135.99
Full star icon Full star icon Full star icon Full star icon Half star icon 4.6 (5 Ratings)
eBook Jan 2023 336 pages 1st Edition
eBook
zł59.99 zł135.99
Paperback
zł169.99
Subscription
Free Trial
eBook
zł59.99 zł135.99
Paperback
zł169.99
Subscription
Free Trial

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Test-Driven Development with PHP 8

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Learn to organize and translate business requirements into maintainable software
  • Minimize regressions and bugs while releasing new features or bug fixes
  • Build maintainable applications using SOLID principles

Description

PHP web developers end up building complex enterprise projects without prior experience in test-driven and behavior-driven development which results in software that’s complex and difficult to maintain. This step-by-step guide helps you manage the complexities of large-scale web applications. It takes you through the processes of working on a project, starting from understanding business requirements and translating them into actual maintainable software, to automated deployments. You’ll learn how to break down business requirements into workable and actionable lists using Jira. Using those organized lists of business requirements, you’ll understand how to implement behavior-driven development (BDD) and test-driven development (TDD) to start writing maintainable PHP code. You’ll explore how to use the automated tests to help you stop introducing regressions to an application each time you release code by using continuous integration. By the end of this book, you’ll have learned how to start a PHP project, break down the requirements, build test scenarios and automated tests, and write more testable and maintainable PHP code. By learning these processes, you’ll be able to develop more maintainable, and reliable enterprise PHP applications.

Who is this book for?

This book is for PHP software developers looking to implement TDD and BDD in their projects. An understanding of object-oriented programming is required to get the most out of this book. Professional software development experience will also be beneficial to understand real-life business cases.

What you will learn

  • Understand how to start a software project
  • Discover how to use Jira as a tool to organize your tasks
  • Explore when and how to write unit, integration, and functional tests using PHPUnit
  • Write behavior-driven tests using Behat
  • Apply SOLID principles to help you write more testable code
  • Get the most out of your automated tests by using continuous integration
  • Use continuous delivery to help you prepare your application for deployment

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Jan 13, 2023
Length: 336 pages
Edition : 1st
Language : English
ISBN-13 : 9781803243597
Languages :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Jan 13, 2023
Length: 336 pages
Edition : 1st
Language : English
ISBN-13 : 9781803243597
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just zł20 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just zł20 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 481.97
Clean Code in PHP
zł149.99
JavaScript from Beginner to Professional
zł161.99
Test-Driven Development with PHP 8
zł169.99
Total 481.97 Stars icon

Table of Contents

16 Chapters
Part 1 – Technical Background and Setup Chevron down icon Chevron up icon
Chapter 1: What Is Test-Driven Development and Why Use It in PHP? Chevron down icon Chevron up icon
Chapter 2: Understanding and Organizing the Business Requirements of Our Project Chevron down icon Chevron up icon
Chapter 3: Setting Up Our Development Environment Using Docker Containers Chevron down icon Chevron up icon
Chapter 4: Using Object-Oriented Programming in PHP Chevron down icon Chevron up icon
Part 2 – Implementing Test-Driven Development in a PHP Project Chevron down icon Chevron up icon
Chapter 5: Unit Testing Chevron down icon Chevron up icon
Chapter 6: Applying Behavior-Driven Development Chevron down icon Chevron up icon
Chapter 7: Building Solution Code with BDD and TDD Chevron down icon Chevron up icon
Chapter 8: Using TDD with SOLID Principles Chevron down icon Chevron up icon
Part 3 – Deployment Automation and Monitoring Chevron down icon Chevron up icon
Chapter 9: Continuous Integration Chevron down icon Chevron up icon
Chapter 10: Continuous Delivery Chevron down icon Chevron up icon
Chapter 11: Monitoring Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.6
(5 Ratings)
5 star 80%
4 star 0%
3 star 20%
2 star 0%
1 star 0%
Michael Stoffer Feb 25, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book is written very well and explains the fundamentals of how to code using TDD and BDD with PHP 8. As a fellow developer who was already familiar with all of these concepts, this book goes in great detail explaining the fundamentals and why it is important to use these concepts. I was very happy with the results I was able to get out of this book and would highly recommend it to anyone whom is looking to learn these techniques.
Amazon Verified review Amazon
Richard Coles Feb 04, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The book provides a clear and concise explanation of the topics covered. The author has done an excellent job in explaining TDD, BDD, and CI/CD with practical examples and engaging analogies. It feels like the author is personally teaching you, making the material easy to understand without the use of overly complex words. As a non-native English speaker, this aspect was particularly helpful to me. I hope to see more books written in a similar style.If you're a PHP developer with a basic understanding of OOP and want to learn how large enterprise software is tested and deployed to production, this book is ideal for you. It will give you an in-depth understanding of how to set up an automated CI/CD pipeline using popular PHP tools and services. The inclusion of SOLID principles further enhances the book's value as a well-known programming practice for creating scalable and maintainable software.Even if you're not a PHP developer, a basic understanding of OOP in other programming languages is sufficient to understand and apply the concepts and practices covered in this book to your preferred language.
Amazon Verified review Amazon
Juan Dec 01, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The process he uses and the tools are pretty cool, I learned a lot, very cool!
Amazon Verified review Amazon
Daisy Apr 13, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I've been wanting to buy a PHP book and I'm very happy I bought this one.
Amazon Verified review Amazon
Michael Sypes Feb 01, 2023
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3
This book is very well written and covers an extremely broad range of topics. However, it's difficult to tell what niche it fills. Very little prior knowledge is expected, and the author does a good job of explaining, step-by-step, each process in the journey. If you don't have most of that prior knowledge, are you really ready to learn Test-Driven Development? It can certainly be argued that's it's never too early to learn best practices, but this is ultimately pretty advanced stuff. I fear that the beginner will get bogged down in the details, and end up blindly following the examples given without gaining the deeper insight into the primary topics, while an advanced programmer will be begging for more depth.The book does a better job of presenting Behat and behavioral testing (BDD) than it does PHPUnit and TDD. (Some of the steps actually have you writing the tests after the code.) Like every other book I've read covering PHPUnit, a big issue is that it's a big jump from the simple tests presented to anything I've ever had to do in real-life live code.Add a star if you're very new to the game. You'll certainly learn some good philosophical points on developing good software. If you don't know anything about these topics, this is a good place to get your feet wet before taking a deeper dive.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.