Building RESTful APIs with Symfony Components
summary
Symfony components map HTTP to objects (HTTP Foundation, PSR-7 bridge), convert objects to JSON with the Serializer (groups, max-depth, custom normalizers), validate input with Validator and Form, and authenticate via Guard or JWT (Lexik bundle). Examples include using JSONResponse, returning 201 with Location header, serializing selected fields for list vs detail, and an API Platform demo: working API in ~40s that spins up a Swagger UI successfully. Key bundles: FOSRest/JMS/Hateoas/LexikJWT
AI-written summary · about
chapters (18)
- 0:00Introduction
- 1:02Why RESTful APIs
- 5:10Why REST and Symphony
- 5:46Why Symphony Components
- 7:05How to create your own framework
- 8:03HTTP Foundation
- 10:12PS7 Standard
- 11:28Realizer
- 15:37Annotations
- 17:54Validator
- 21:55Questions
- 26:55First Responder
- 27:51Jason Token
- 29:07Level 3 API
- 30:17Documentation Bundle
- 31:27API Platform
- 35:05Symphonia
- 36:13Conclusion
related talks
41mBuilding Restful APIs with Symfony Components
57mBuilding first-class REST APIs with Symfony
50mBuild RESTful APIs easily with Symfony
41mBuilding first-class REST APIs with Symfony
53mHigh Quality APIs with API Platform
56mREST or GraphQL? Examples with Symfony and API Platform
34mWhy PHP and Symfony are still in the game
39mSuitable serialization with API Platform and Symfony
