A deeper look into API Platform 3
summary
API Platform 3 refactors metadata and identifiers, removes the old data transformer layer and treats any plain PHP object as a resource while replacing transformers with simpler processor/provider hooks; upgrade path uses a 2.7 backward‑compat flag, an api‑resource upgrade command and migration steps. It adds automatic disabled item routes to avoid “unable to generate an IRI”, targets PHP 8.1 and Symfony 6.1, defaults to OpenAPI 3.1, supports surrogate‑key cache invalidation, and ships a debug API resource command; about 80,000 lines of legacy code are removed.
AI-written summary · about
chapters (15)
- 0:00Introduction and speaker intro
- 0:23What is API Platform
- 3:09API Platform history and evolution
- 6:28Key changes in API Platform 3
- 9:34Backward compatibility and upgrade path
- 12:39Removing data transformers
- 15:43Fixing IRI generation errors
- 18:45Persistence layer and interfaces
- 21:04Subresources as resources
- 23:24Experimental features and limitations
- 24:09Contributor updates and conventions
- 25:55Why version 3 took so long
- 27:24Future plans and roadmap
- 31:15Community and contributors thanks
- 32:47Q&A session
