Ecotone Message Metadata

•
52
•

Manages and propagates message metadata and headers within PHP applications using the Ecotone Framework.

This skill enables Claude to implement and manage complex message metadata (headers) patterns within the Ecotone Framework ecosystem. It provides expert guidance on reading headers using attributes like #[Header], enriching messages with declarative attributes, and utilizing automatic propagation of userland headers from commands to events. It is particularly useful for developers building event-driven systems that require consistent handling of cross-cutting concerns such as multi-tenancy, authentication context, and audit trails across message boundaries.

Key Features

01Declarative metadata access using #[Header] and #[Headers] attributes
02Dynamic header enrichment via Before, After, and Presend interceptors
03Automated propagation of custom headers from commands to subsequent events
0452 GitHub stars
05Comprehensive testing patterns for metadata verification with EcotoneLite
06Convention-based header resolution for cleaner handler signatures

Use Cases

01Implementing multi-tenancy by propagating tenant identifiers across all system messages
02Enriching outgoing messages with security tokens or correlation IDs via interceptors
03Tracking user context and session data for audit logging in event-driven architectures