From Big Ball of Mud to Modulith: Introducing and keeping a clean architecture in PHP with Deptrac

While Deptrac is commonly used to enforce horizontal boundaries within PHP projects, it can also help define and maintain vertical boundaries (such as Bounded Contexts in DDD speak, or Quanta ) in PHP monoliths. This capability is especially valuable when implementing the Hexagonal aka. Ports and Adapters architecture , ensuring clear separation of concerns and robust modularity in your PHP…