spiral/twig-bridge
Twig adapter for the Spiral Framework. Adds a Twig view engine via TwigBootloader, with support for custom extensions, options, and processors. Configure eagerly through TwigEngine or lazily through TwigBootloader. Requires spiral/views.
twig/twig). The package’s value proposition is limited to projects already using Spiral or requiring Spiral-specific Twig features (e.g., middleware integration, event-driven templating). For Laravel, this remains a niche tool with high integration friction.spiral/core, spiral/framework) remain a hard blocker for Laravel.twig/twig.Psr-15 → Laravel’s Illuminate\Http\Middleware).Container vs. Laravel’s Illuminate\Container).spiral/events vs. Laravel’s Illuminate\Support\Facades\Event).| Risk Area | Severity (Updated) | Mitigation Strategy | Notes |
|---|---|---|---|
| Container Conflicts | High | Isolate Spiral’s container in a micro-service or use a custom resolver. | No change in v2.0.1. |
| Middleware Clashes | Medium | Implement a middleware adapter layer. | No new tools provided. |
| Event System Duplication | Medium | Use Laravel’s event system and manually map Spiral events. | No Spiral event improvements. |
| Dependency Bloat | Low | Evaluate if Spiral’s core is necessary. | No reduction in dependencies. |
| Long-term Maintenance | High → Critical | Assess Spiral’s roadmap alignment with Laravel. | No evidence of Laravel support; CI update is minimal. |
| Community Support | Critical | Fork or expect unsupported use. | 0 stars, no active contributors; release notes show no engagement. |
twig/twig alone is sufficient.twig/twig + custom Laravel service providers been explored? Are there other maintained bridges (e.g., laravel-twig)?twig/twig (no Spiral).spiral/twig-bridge (requires Spiral dependencies).| Component | Laravel Native | Spiral Adapter | Notes |
|---|---|---|---|
| Templating Engine | Blade/Twig | Twig | No new alignment in v2.0.1. |
| Dependency Injection | IoC Container | Spiral Container | Conflict risk unchanged. |
| Middleware | Psr-15 | Psr-15 | Adapter still required. |
| Events | Illuminate | Spiral | Parallel systems; no integration help. |
twig/twig.spiral/gh-actions) is irrelevant to Laravel integration.twig/twig. Test performance/feature parity.twig/twig): Actively maintained; low risk.spiral/twig-bridge): Critical risk.
| Failure Scenario | Likelihood | Impact | Mitigation | |---------------------------------|------------
How can I help you explore Laravel packages today?