davidannebicque/html-to-spreadsheet-bundle
spatie/laravel-twig).SpreadsheetTrait would need Laravel-compatible alternatives (e.g., middleware or service-based rendering).maatwebsite/excel alternatives) might be simpler.maatwebsite/excel or standalone; no conflicts.DependencyInjection or HttpFoundation if needed).spatie/laravel-excel (if CSV/XLSX generation is the sole goal).data-xls-* attributes to Blade directives.spatie/laravel-twig, but adds complexity.symfony/ux-live-component or symfony/webpack-encore) to test core functionality.data-xls-* attributes (e.g., @xlsStyle, @xlsFormula).Str::of() for HTML attribute manipulation.SpreadsheetRenderer as a Laravel service.ContainerInterface with Laravel’s Container.SpreadsheetTrait to Laravel controllers via traits or middleware.Route::get('/export', [ExportController::class, 'generate'])).response()->cache().| Feature | Symfony Bundle | Laravel Adaptation | Notes |
|---|---|---|---|
| HTML Table Parsing | ✅ Native | ✅ (via custom Blade directives) | Requires attribute-to-Blade mapping. |
| PhpSpreadsheet Integration | ✅ Native | ✅ (direct or via wrapper) | No changes needed. |
| Twig Templates | ✅ Native | ❌ (replace with Blade) | High effort; evaluate hybrid approach. |
| EventDispatcher | ✅ Native | ❌ (use Laravel Events) | Replace with Illuminate\Support\Facades\Event. |
| Dependency Injection | ✅ Native | ✅ (via Laravel Service Provider) | Bind services manually. |
| French Presets | ✅ Native | ✅ (copy or extend) | Localization can be Laravel-compatible. |
maatwebsite/excel community.Container issues) may require deep dives.| Risk | Impact | Mitigation |
|---|---|---|
| Malformed HTML input | Corrupted spreadsheet output | Validate HTML structure pre-processing. |
| PhpSpreadsheet memory limits | OutOfMemoryException | Implement chunking or increase memory_limit. |
| Symfony-Laravel integration bugs | Service registration failures | Use interface adapters for loose coupling. |
How can I help you explore Laravel packages today?