Test-Driven APIs with Laravel and Pest
If you want to learn how to build robust, and maintainable APIs with Laravel, this book is for you.
📖 Download the first chapter for FREE!
Why this book?
Starting with TDD is hard and overwhelming. Writing good APIs with high test coverage is even harder... This book will show you how you can:
- Achieve near 100% code coverage using Pest
- 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
I'll teach you these concepts by building a payroll application where we'll face real-world challenges.
Grab your copy today and start building high-quality APIs with Laravel and Pest!
You can find more info here.
What do people say?
Do you offer a money-back guarantee?
Yes, no questions asked! If you don't like the book, just drop me a message within the first 30 days at martin@maritnjoo.dev
What's inside?
Introduction.......................................1
The fundamentals..............................4
Test-Driven Development....................5
REST API................................................12
JSON API...............................................15
API Best Practices..............................21
The design.........................................24
User stories...........................................25
Database design...................................26
API design..............................................28
Pest..........................................................29
Useful concepts from DDD................31
The implementation.........................32
Blueprint.................................................32
API versioning.......................................33
UUIDs.......................................................34
Configuring Pest...................................36
Department API....................................37
Employee API.........................................54
Payday API..............................................79
Thank you...........................................92