
The src/ Layout for Hexagonal PHP: Layers and Import Rules
A concrete src/ tree for hexagonal PHP, the namespace-to-layer map, the allowed import directions, and the CI check that enforces them.
Jul 3, 20266 min read0 reactions0 comments
Tag archive

A concrete src/ tree for hexagonal PHP, the namespace-to-layer map, the allowed import directions, and the CI check that enforces them.

Your domain layer importing Doctrine is a rule nobody enforces. Deptrac makes it a CI failure. Layers, the dependency rule, and a baseline for legacy.