Having A Hard Time Getting Started With TDD?
After a 2-hour read, you'll be able to achieve 90%+ code coverage in an easy, maintainable way.
About The Book
"Test-Driven APIs with Laravel and Pest" is a 93-page book that teaches you:
Start with TDD by testing your APIs
Achieve near 100% code coverage using Pest
Survive the testing jargon. You can test 90% of your app without mocks, fakes, test doubles, spies and complicated concepts like these.
Write standardized requests and responses using JSON API
Create developer-friendly APIs using nested resources
Utilize PHP 8.1 enums with the factory and the strategy design pattern
Use simple, yet powerful concepts from Domain-Driven Design
...and a lot more about API design
All of the above by practical examples. In the book, we'll build a payroll application where we'll face real-world challenges.
Table of Contents
The book has three main parts: fundamentals, design, implementation.
The first section of the book focuses on the basics. It shows you what is TDD, REST API, and JSON API.
The second section shows you how to design a simple payroll application.
This is where we start coding and testing! We'll build an employee management and payroll app.
Get A Free Chapter
Download a 33-page sample chapter
What Are People Saying
Read through @mmartin_joo's book on test driven apis with #laravel and #pest over the weekend. Really well put together, with great examples. Will definitely be one to grab when he officially releases it!#phpc— matt trask (@matthewtrask) January 5, 2022
Even on 1st line of introduction I got informative info. I didn't know at this moment how many were PSR standards, design patterns and ISO standard.— Sanjeet Sagar (@Cyb3r9) January 5, 2022
Great book: Test Driven APIs with laravel and Pest
By the way, yesterday I received a chapter of the book you are writing @mmartin_joo. about Laravel Test Driven, I find it super good, very easy to read and everything very well explained and easy to understand even for those who do not are good at the language— Bárbaro Javier (@bjvalmaseda) December 22, 2021
Thank you, for your book! People are loving it.— Nuno Maduro 🤌🏻 (@enunomaduro) January 5, 2022
Ive been lucky to get to read @mmartin_joo's ebook on TTD API development with Laravel and Pest. From what I have read sofar, I must say that he really does a good job explaining with precise code examples. If you are to code your own API, this comes really handy! https://t.co/CUgxFVxqYP— Morten Bak (@Nempiri) January 4, 2022
It’s a good read. I practice TDD myself, but I’m picking up a lot of useful bits and pieces. I’m happy to write a review once I finish.— Ruslan Starikov (@RuslanSys5) January 5, 2022
source code included
The 93-page book in PDF format
Source code to the payroll application developed in the book
only the essentials
The 93-page book in PDF format
Who Am I?
👋 Hey!I'm Martin Joo, a PHP developer since 2012. I'm also a content creator, blogger, and author of:
Domain-Driven Design with Laravel
Microservices with Laravel
Laravel Eloquent Recipes
Proper API Design with Laravel
As you can see, I really love Laravel. I'm also sharing everything I know about development on Twitter.
Frequently Asked Questions
Do you offer a money-back guarantee?
Yes, for 30 days! Just reach out to me at firstname.lastname@example.org, and you'll get your money back. I'll only ask you why didn't you like the product.
Can I upgrade from one package to another later?
Yes! Just drop me an e-mail at email@example.com, and I'll create you a discount code, so you only have to pay the difference between the two packages.
Is there an epub or mobi format?
Right now, every content ships in PDF format. The reason is simple: each PDF contains a ton of code examples. These code examples look very nice in a PDF where I can use HTML to format the pages.epub and mobi kind of mess this up, so this is why I exported everything in PDF.However, if you cannot live without these formats, drop me an e-mail, and I can export a copy for you.