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.
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.
Lumen Programming Guide: Writing PHP Microservices, REST and Web Service APIs
247
Lumen Programming Guide: Writing PHP Microservices, REST and Web Service APIs
247Paperback(1st ed.)
Product Details
| ISBN-13: | 9781484221860 |
|---|---|
| Publisher: | Apress |
| Publication date: | 09/24/2016 |
| Edition description: | 1st ed. |
| Pages: | 247 |
| Product dimensions: | 7.01(w) x 10.00(h) x (d) |