Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Lumen Programming Guide: Writing PHP Microservices, REST and Web Service APIs 1st ed. Edition
Purchase options and add-ons
Learn to write test-driven microservices, REST APIs, and web service APIs with PHP using the Lumen micro-framework, from the now popular Laravel family. This book shows you how testing APIs can help you write bullet-proof web application services and microservices.
In the Lumen Programming Guide you will learn how to use Lumen―a micro-framework by Laravel―to write bullet-proof APIs. Lumen helps you write productive, maintainable APIs using modern application design. You will learn how to write fully-tested APIs and understand essential Lumen concepts used to build a solid foundation for writing API projects.
What You Will Learn
- Maintain your API's database structure through built-in database migrations
- Write tests with factory data in a test database
- Respond with consistent data output in JSON
- Deal with PHP exceptions by using JSON responses
- Create, read, update, and delete REST resources
- Represent model associations in API responses
- Build a solid foundation for writing tests with PHPUnit and Mockery
- Validate data
Who This Book Is For
PHP developers with no Laravel experience. Only a basic understanding of HTTP and writing PHP applications is needed to get started.
- ISBN-101484221869
- ISBN-13978-1484221860
- Edition1st ed.
- PublisherApress
- Publication dateSeptember 24, 2016
- LanguageEnglish
- Dimensions7.01 x 0.62 x 10 inches
- Print length267 pages
Editorial Reviews
From the Back Cover
Learn to write test-driven microservices, REST APIs, and web service APIs with PHP using the Lumen micro-framework, from the now popular Laravel family. This book shows you how testing APIs can help you write bullet-proof web application services and microservices.
In the Lumen Programming Guide you will learn how to use Lumen―a micro-framework by Laravel―to write bullet-proof APIs. Lumen helps you write productive, maintainable APIs using modern application design. You will learn how to write fully-tested APIs and understand essential Lumen concepts used to build a solid foundation for writing API projects, along with the following important features:
- Maintain your API's database structure through built-in database migrations
- Write tests with factory data in a test database
- Respond with consistent data output in JSON
- Deal with PHP exceptions by using JSON responses
- Create, read, update, and delete REST resources
- Represent model associations in API responses
- Build a solid foundation for writing tests with PHPUnit and Mockery
About the Author
Product details
- Publisher : Apress; 1st ed. edition (September 24, 2016)
- Language : English
- Paperback : 267 pages
- ISBN-10 : 1484221869
- ISBN-13 : 978-1484221860
- Item Weight : 1.05 pounds
- Dimensions : 7.01 x 0.62 x 10 inches
- Customer Reviews:
About the author

Discover more of the author’s books, see similar authors, read book recommendations and more.
Customer reviews
- 5 star4 star3 star2 star1 star5 star31%39%31%0%0%31%
- 5 star4 star3 star2 star1 star4 star31%39%31%0%0%39%
- 5 star4 star3 star2 star1 star3 star31%39%31%0%0%31%
- 5 star4 star3 star2 star1 star2 star31%39%31%0%0%0%
- 5 star4 star3 star2 star1 star1 star31%39%31%0%0%0%
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonTop reviews from other countries
After reading this book you will be able to create an API following good practice and confident that your APi won't break because of the TDD approach.
Now negative point for:
This book could have been really good if the authors would have covered the authentication process and included in their tests scripts.
authentication is in every API so you cant miss this step.
Extra point:
covering the cache option using REDIS or other ...