Zero to API with Lumen
summary
Builds a working REST API using PHP and Lumen, showing routes, Eloquent models, migrations and tests, and notes which Artisan commands are missing. Implements JSON output via a Fractal transformer, simple CRUD endpoints that return 201 and 204 where appropriate, and protects write actions with JWT authentication. Uses Postman for manual requests, demos a Pokemon Pokedex example that wires up validation, location headers and 404s, and claims the prototype takes under an hour to assemble and is easy to maintain.
AI-written summary · about
chapters (35)
- 0:00Intro
- 0:28About Amanda
- 1:02What is Lumen
- 2:01Why use Lumen
- 2:40Microservices
- 4:29API
- 5:14REST API
- 7:05HTTP API
- 8:14HTTP Methods
- 10:00Homestead
- 10:30Installation
- 11:00Environment variables
- 12:29Routes
- 13:10Artisan
- 13:32No Serve
- 15:26Migrations
- 16:36Make
- 17:48Resources
- 19:20Routing
- 21:00Views
- 21:46JSON
- 22:22Fractal
- 23:12JSON Setup
- 23:24Controller
- 24:45Pokemon
- 25:12Status Codes
- 25:28Updating Existing Pokemon
- 26:01Deleting Items
- 27:08Protection Table
- 27:55Authentication
- 28:44JWT Authentication
- 29:21Authentication Layer
- 30:17Simple API
- 30:34Testing in Lumen
- 31:17Additional Resources
related talks
33mZero to API with Lumen
36mBuilding a GraphQL API with Laravel
41mBuilding Restful APIs with Symfony Components
30mHow to build an API in a day with Laravel API Boilerplate
18mRESTful API: What's New in Laravel 5.5
42mPerformant APIs with GraphQL and PHP
39mBuilding RESTful APIs with Symfony Components
41mBuilding first-class REST APIs with Symfony
