Skip to content

Embrace Clean Architecture #506

Open

Description

@laurisb

Feature Request

Q A
New Feature yes
RFC no
BC Break no

Summary

Current examples often group rules by feature (e.g., Controllers, Repositories). Instead, we should prioritize Clean Architecture (layers, dependency direction) in docs and examples to:

  • Better reflect Arkitect's purpose
  • Encourage sustainable design (domain protection, layer isolation)
  • Scale better than feature-grouping

Suggested Changes:

  • Showcase layering (e.g., Domain -> Application -> Infrastructure)
  • Document enforcing dependency rules between layers
  • Keep feature grouping as optional

Activity

  1. added
    documentation
    good first issue
    on May 18, 2025
  2. laurisb commented on Oct 10, 2025

    @laurisb
    Author

    I've been experimenting with the configuration and successfully implemented enforcement for both bounded context isolation and layer dependency restrictions. The configuration file for a Symfony Modular Monolith is attached.

    phparkitect.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions