symfonyports-and-adapters
Implement Hexagonal Architecture (Ports and Adapters) in Symfony; separate domain logic from infrastructure with clear boundaries
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.
| name | symfony:ports-and-adapters |
|---|---|
| description | Use 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.mddocs/complexity-tiers.md