Kicking off with Zend Expressive and Doctrine ORM
summary
Walks through bootstrapping an Expressive app from the skeleton with composer create-project skeleton, adds two concrete endpoints to check books in and out, and implements Doctrine ORM via container-interop-doctrine with an EntityManager-backed repository. Shows transactional checkout, automatic unit-of-work flush middleware, and using ORM CLI schema generation, and demonstrates session / JWT authentication integration (helios and PSR-7 session) and pitfalls of middleware ordering and response mutation.
AI-written summary · about
chapters (34)
- 0:00Start
- 1:19Layers of an Expressive application
- 4:06Node http.Server using Diactoros
- 5:22Middleware in the middle
- 7:12Modifying the response
- 8:06Pipe all the things!
- 8:52LogErrors Caught Middleware
- 9:18SessionInitialising Middleware
- 9:38Authentication Middleware
- 10:09IndexAction Middleware
- 18:12Zend Form's Module.php
- 18:35config/autoload/zend-form.global.php ?php
- 20:14Expressive installer - start
- 20:35Expressive installer - router?
- 20:47Expressive installer -template?
- 20:58Expressive installer - whoops?
- 21:56Book entity
- 22:50FindBookByUuidinterface
- 23:16Check OutAction
- 24:58Doctrine quick overview
- 27:34config/autoload/doctrine-modules.global.php
- 29:06Installation
- 31:05config/cli-config.php
- 34:03src/App/Service/Book/DoctrineFindBook By Uuid.php
- 34:58src/App/Action/CheckOutAction.php
- 36:29Generate the schema
- 36:58Insert some data
- 38:17Flushing Middleware
- 41:06Create the middleware
- 44:34Factory the middleware
- 45:22Add middleware to pipe
- 45:54Session is stored in Request
- 46:17To summarise...
- 48:10Any questions?
related talks
41mBuilding Websites with Zend Expressive 2
56mThe absolute beginner's guide to Domain Driven Design with Symfony
54mFrom domain to code: a practical approach
57mSymfony is RAD
45mFrom Helpers to Middleware
31mModern PHP development with Laravel 5.6
33mThe Tao of Laravel
01h 01mDeep dive into Symfony 4 internals
