Skip to main content
  • Book
  • © 2016

Lumen Programming Guide

Writing PHP Microservices, REST and Web Service APIs

Apress

Authors:

  • A first to market book on the Lumen micro-framework, part of the Laravel PHP framework family

  • Deals with growing, popular microservices as well as REST and web services

  • Includes test driven development

  • 15k Accesses

Buy it now

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 49.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (12 chapters)

  1. Front Matter

    Pages i-xx
  2. Installing Lumen

    • Paul Redmond
    Pages 1-6
  3. Hello Lumen

    • Paul Redmond
    Pages 7-16
  4. Creating the Book Application

    • Paul Redmond
    Pages 17-22
  5. Starting the Books API

    • Paul Redmond
    Pages 23-32
  6. Responding to Errors

    • Paul Redmond
    Pages 65-88
  7. Leveling Up Responses

    • Paul Redmond
    Pages 89-124
  8. Validation

    • Paul Redmond
    Pages 125-135
  9. Authors

    • Paul Redmond
    Pages 137-163
  10. The /authors API Resource

    • Paul Redmond
    Pages 165-199
  11. Book Bundles

    • Paul Redmond
    Pages 201-217
  12. Ratings

    • Paul Redmond
    Pages 219-242
  13. Back Matter

    Pages 243-247

About this book

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.

Authors and Affiliations

  • Phoenix, USA

    Paul Redmond

About the author

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

Bibliographic Information

Buy it now

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 49.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access