articles --tag design-patterns
Articles tagged #design-patterns
all articlesAugust 2024
Understanding Service Containers in PHP
How dependency injection containers store services, resolve their dependencies, and manage lifecycles - built up from scratch with a worked PHP-DI example.
March 2024
Skinny Controllers, Fat Models
Keeping controllers lightweight by moving business logic out of them - what the rule buys you in testing and reuse, and where a service or domain layer fits instead.
March 2024
Clean Architecture for PHP Applications
A multi-layered PHP architecture with Repository, Service, DTO, and Controller layers that keeps business logic clean, testable, and ready to scale.