symfonyports-and-adapters

MakFly's avatarfrom MakFly

Implement Hexagonal Architecture (Ports and Adapters) in Symfony; separate domain logic from infrastructure with clear boundaries

⭐26stars🔀4forks📁View on GitHub🕐Updated Dec 30, 2025⬇️1downloads

When & Why to Use This Skill

This Claude skill facilitates the implementation of Hexagonal Architecture (Ports and Adapters) within Symfony projects. It helps developers decouple core domain logic from infrastructure concerns, ensuring high maintainability, easier testing, and adherence to Clean Architecture principles in PHP development.

Use Cases

  • Refactoring legacy Symfony applications to separate business rules from framework-specific code.
  • Defining Port interfaces within the domain layer to abstract external dependencies like databases and third-party APIs.
  • Implementing Infrastructure Adapters using Symfony's dependency injection to fulfill domain requirements without leaking implementation details.
  • Structuring project directories and namespaces to enforce strict architectural boundaries between the core and external layers.
namesymfony:ports-and-adapters
descriptionUse when symfony ports and adapters

symfony:ports-and-adapters (Micro)

Use when

  • Use when symfony ports and adapters

Rules

  • Keep changes minimal and focused
  • Ask before running servers/builds/tests
  • Load reference/examples only on explicit request

References

  • reference.md
  • docs/complexity-tiers.md