Course
Modern PHP: 8.x in Practice
PHP as it exists in serious production systems today — strict types, enums, readonly objects, attributes, fibers, JIT, and a practical path out of legacy 5.x habits.
Reviews
Enrolled members can rate this course.
No reviews yet.
The Modern Type System
Strict typing, enums, readonly state, and the syntax that changed how PHP models data.
- 01Typed Everything: strict_types, Properties, and Honest SignaturesHow PHP's type system actually behaves at runtime, where coercion still lurks, and the type vocabulary you should use instead of arrays-everywhere.22mOpen
- 02Enums, readonly, and Value Objects That Stay ValidReplace class constants and mutable bags of state with backed enums, readonly objects, and small domain values that enforce themselves.21mOpen
- 03match, Nullsafe Chains, and Constructor Promotion Without Cargo CultsThe syntax upgrades that remove whole classes of bugs — strict match semantics, intentional null handling, and smaller constructors.18mOpen
Runtime and Language Machinery
Attributes, fibers, OPcache, and JIT — what they are for, and what they are not.
- 01Attributes: Metadata the Runtime Can Actually ReadHow PHP attributes differ from docblocks, how reflection consumes them, and where framework-style metadata helps or hurts architecture.20mOpen
- 02Fibers: Cooperative Concurrency Without Pretending PHP Has ThreadsWhat fibers actually suspend, why they are infrastructure rather than application syntax, and how async PHP changes your mental model.24mOpen
- 03OPcache and JIT: Performance Without SuperstitionWhat OPcache definitely gives you, what JIT does and does not accelerate, and the production settings worth understanding.20mOpen
Leaving PHP 5 Behind
Legacy habits, automated migration, and the design practices that make PHP 8.x code maintainable.
- 01Unlearning PHP 5: The Habits That Still Create Production IncidentsThe legacy patterns behind modern PHP bugs — error suppression, stringly typed state, superglobal soup, and arrays pretending to be objects.19mOpen
- 02Migrating Legacy PHP Without a Big-Bang RewriteA battle-tested upgrade path using dependency pinning, characterization tests, Rector, static analysis, and incremental runtime jumps.24mOpen
- 03Modern PHP Architecture: Boundaries, Exceptions, and Dependency InjectionHow to structure PHP 8.x applications so types, tests, and operations reinforce each other instead of merely surrounding legacy chaos.23mOpen