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.
Purpose Alignment (Unchanged):
The spiral/marshaller-bridge package remains Spiral Framework-specific, offering no inherent advantage for Laravel’s native marshalling needs (DTOs, API responses, or serialization). Laravel’s ecosystem (spatie/laravel-data, Fractal, Symfony Serializer) continues to provide better alignment with Laravel’s architecture.
Spiral vs. Laravel Ecosystem (Updated Context):
actions/checkout bump).MarshallerInterface) remain incompatible with Laravel’s DI container and Eloquent/Blade integrations.Marshalling Needs (Reiterated):
Key Dependencies (Updated):
actions/checkout) are CI/CD tooling changes and irrelevant to Laravel integration.| Risk Area | Updated Assessment |
|---|---|
| Dependency Bloat | Unchanged: Spiral’s marshalling layer remains non-portable to Laravel. |
| Maintenance Overhead | Worsened: No Laravel-specific activity; package appears abandoned for Laravel. |
| Performance | Unchanged: No benchmarks or Laravel-specific optimizations. |
| Community Support | No improvement: 0 stars, no Laravel issues, no Spiral/Laravel cross-community engagement. |
| Testing | Minor fix in v1.0.1: Tests were "fixed" (PR #19), but no Laravel test coverage. |
Why Spiral? (Reiterated)
Migration Path (Reiterated)
MarshallerInterface be viable? (Answer: Only if Spiral’s marshalling logic is absolutely required and no Laravel alternative exists.)Alternatives (Reiterated)
spatie/laravel-data or Fractal recently added features that obviate Spiral’s marshalling? (Answer: Yes—both are actively maintained and Laravel-native.)Long-Term Viability (Updated)
spatie/laravel-data (DTOs), Fractal (API responses), Symfony Serializer (flexible serialization) remain superior alternatives.actions/checkout update is CI/CD-only and irrelevant to integration.spatie/laravel-data or Fractal.spatie/laravel-data or Fractal.| Component | Updated Risk | Updated Mitigation |
|---|---|---|
| Laravel Service Container | Unchanged: Spiral DI ≠ Laravel DI. | Bind Spiral interfaces manually (high risk). |
| Eloquent Models | Unchanged: No native support. | Manual mapping required (error-prone). |
| Blade/Templating | Unchanged: No integration. | Use Laravel’s JSON responses instead. |
| Middleware | Unchanged: Spiral middleware fails. | Avoid middleware-dependent marshalling. |
spatie/laravel-data or Fractal.spiral/marshaller-bridge for full Spiral migration.spatie/laravel-data (actively maintained, Laravel-native).Fractal (mature, widely adopted).Fractal or spatie/laravel-data.| Scenario | Updated Impact |
|---|---|
| Package Abandoned | Confirmed: No Laravel updates since 2023; high risk of stagnation. |
| DI Conflicts | Unchanged: Spiral container may override Laravel bindings. |
| No Eloquent Support | Unchanged: Manual mapping required, increasing bug risk. |
| API Response Issues | Unchanged: Inconsistent JSON formatting vs. Laravel’s native tools. |
| New: Spiral Marshalling Changes | Future Spiral updates may break this package without Laravel fixes. |
spatie/laravel-data have Laravel-specific docs.Do not use spiral/marshaller-bridge in Laravel.
v1.0.1 introduces no meaningful changes for Laravel users.
Instead:
spatie/laravel-data (actively maintained).Fractal or Laravel’s built-in JSON responses.Symfony Serializer.If Spiral-specific marshalling is absolutely required:
How can I help you explore Laravel packages today?