Writing APIs with Lumen by Paul Redmond [Leanpub PDF/iPad/Kindle]
Writing APIs with Lumen
Writing APIs with Lumen

Retired

This book is no longer available for sale.

Writing APIs with Lumen

This book is 100% complete

Completed on 2016-04-09

About the Book

Learn to Write REST APIs from Scratch

Want to learn how to write fully-tested REST APIs and microservices with PHP? I will walk you through developing an API and teach you how to test your code along the way.

In this book 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.

This book is suitable for PHP developers with no Laravel experience. Only a basic understanding of HTTP and writing PHP applications is needed to get started.

What's Inside the Book?

You will learn how to write fully-tested APIs and understand essential Lumen concepts used to build a solid foundation for writing API projects. You will also learn:

  • To Maintain your API's database structure through built-in database migrations
  • Writing Tests with factory data in a test database
  • Responding with Consistent data output in JSON
  • How to respond to PHP Exceptions with JSON Responses
  • How to Create, Read, Update, and Delete REST Resources
  • How to represent model associations in API responses
  • A solid foundation for writing tests with PHPUnit and Mockery
  • Data Validation

This book is not only teaching you Lumen, it will walk you through how to use TDD to write applications and mock objects. This book is basically two books in one, in an easy-to-follow tutorial format.

About the Author

Paul Redmond
Paul Redmond

Paul is a web developer writing highly available applications powered by PHP, JavaScript, and RESTful Web Services.

Reader Testimonials

Daniel Baron
Daniel Baron

Freelance Web Developer

If you need a head-start on how to use Lumen for stateless APIs, you should get this book. It shows the concepts on how to design, develop and test an API from the very beginning.

Michael Dyrynda
Michael Dyrynda

Developer, Hostworks

Paul’s “Writing APIs with Lumen” is an excellent resource for anybody looking to build APIs with the Lumen Framework. It is a thorough introduction not only to Lumen, but to writing code through test driven development using the tools available to the framework.

The Leanpub Unconditional, No Risk, 100% Happiness Guarantee

Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms

Write and Publish on Leanpub

Authors and publishers use Leanpub to publish amazing in-progress and completed ebooks, just like this one. You can use Leanpub to write, publish and sell your book as well! Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks. Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. It really is that easy.

Learn more about writing on Leanpub