New in CakePHP 4 4, and API serializers
summary
Hands-on demo of CakePHP 4.4: generated a new app with SQLite, created users and calendar_items via migrations (added product_id and nullable all_day), showed automatic test migrations so PHPUnit runs Phinx migrations instead of static fixture schemas, built a calendar service wired through the DI container, implemented a custom JSON serializer registry with per-entity prepare/serialize/parse methods and incremental includes, wrote controller tests that exercise GET/POST flows, and hooked error reporting to Sentry — integration and tests run successfully after fixes.
AI-written summary · about
chapters (18)
- 0:00Introduction
- 1:50Database schema management
- 3:40Users table
- 5:40Fixtures
- 8:00Other migration tools
- 12:20Improved help file
- 17:10Content type negotiation
- 28:50Custom view class
- 29:35Serializer
- 33:15Global Registry
- 34:33Calendar Serializer
- 38:55User Serializer
- 42:45Typeend
- 44:05Testing
- 47:20LSP
- 48:00Config Request
- 52:25Exception Reporting
- 57:15Serializer Mapping








