Repository navigation
Build philosophy
Edward Baitsewe edited this page Nov 9, 2026
·
1 revision
Slim Killer follows twelve rules in two parts. They come from two PHP courses by Monate
Media. The short form is in
BUILD_PHILOSOPHY.md,
which is the version that counts. Each page below explains one rule in depth: why it
exists, where it shows in the code today, and when not to apply it.
How components are connected. From PHP 8.5 OOP Mastery (course page). These rules always apply.
- Config and the container belong at the entry point
- Test behaviours, not layouts
- The type system is a security layer
- Favour composition over inheritance
- Objects either hold state or perform work, rarely both
- Read the failing test before reading the code
What the components should be, and when that effort is worth it. From Advanced Domain Architecture & Tactical DDD (course page). Rule 7 decides whether the rest apply.
- Ceremony must be paid for
- The dependency rule points inward
- Make illegal states unrepresentable
- The aggregate is a consistency boundary
- Speak the client's words, exactly
- A failure the business can predict is not exceptional
Rule 11 has two companion pages: the Glossary and Writing for clients.