spiral/marshaller-bridge
Bridge package for Spiral Framework that wires up the Spiral Marshaller with sensible defaults. Provides a bootloader, replaces SerializerBootloader, and lets you configure the MapperFactory and type matchers for custom mapping behavior.
array_map or json_encode chains).spatie/laravel-fractal or webonyx/graphql-php).Executives: "This package lets us standardize how data moves between Spiral services and external systems—cutting dev time on custom serialization by 30%+ while ensuring consistency. It’s a lightweight, MIT-licensed tool that aligns with our microservices roadmap, reducing technical debt for API integrations."
Engineering/Architecture: *"The Marshaller Bridge provides a Spiral-native way to handle payload transformation (e.g., DTOs ↔ JSON/XML/GraphQL) without reinventing wheels. Key benefits:
Developers:
*"No more writing repetitive array_filter or json_decode logic for API responses. This bridge lets you define once how data serializes/deserializes (e.g., for Stripe webhooks or internal events) and reuse it across services. Example:
// Define a marshaller for a 'User' DTO
$marshaller = new UserMarshaller();
$payload = $marshaller->marshal($userEntity); // Auto-converts to JSON/XML/etc.
Perfect if you’re using Spiral and tired of manual mapping."*
How can I help you explore Laravel packages today?