Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Datatables Export Laravel Package

yajra/laravel-datatables-export

Queue-based server-side exports for yajra/laravel-datatables using Livewire and OpenSpout. Adds an export-button component and WithExportQueue trait to DataTable classes, enabling scalable Excel/CSV-style exports via Laravel batch jobs.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Bulk Data Export for Analytics/Reporting Tools: Enables seamless CSV/Excel exports of large datasets (e.g., user activity logs, financial reports) without blocking UI threads. Critical for internal tools where users expect real-time exports of 10K+ rows.

  • Roadmap for Self-Service Analytics: Accelerates development of admin dashboards by reducing custom export logic. Aligns with a phased rollout:

    1. Basic filtering (existing DataTables).
    2. Queued exports (this package).
    3. Scheduled exports (future feature).
  • Build vs. Buy: Buy over custom solutions to avoid:

    • Maintaining queue workers, OpenSpout, and Livewire integrations.
    • Debugging edge cases (e.g., memory limits, S3 storage).
    • Re-inventing column formatting (dates, numbers, text).
  • Use Cases:

    • Compliance: Export audit trails (e.g., GDPR data requests).
    • Sales Ops: Generate client reports with formatted currency/date fields.
    • Support: Provide agents with filtered ticket exports (CSV/Excel).

When to Consider This Package

Adopt if:

  • Your Laravel app uses Yajra’s DataTables (server-side processing) and needs asynchronous exports (avoids timeouts).
  • Exporting >5K rows frequently (OpenSpout optimizes memory usage).
  • Team lacks bandwidth to build queue-based export systems from scratch.
  • Requires Livewire integration for dynamic UI exports (e.g., table-specific buttons).

Look elsewhere if:

  • Using non-Laravel stacks (e.g., Django, Rails).
  • Exports are <1K rows (synchronous exports suffice).
  • Need PDF exports (this package focuses on CSV/Excel).
  • Already have a dedicated ETL pipeline (e.g., Airflow) for large datasets.
  • Running PHP <8.3 or Laravel <13 (compatibility gap).

How to Pitch It (Stakeholders)

For Executives: "This package lets our teams export large datasets (e.g., 50K+ rows) instantly without freezing the UI—critical for tools like [Product X] where users demand real-time reports. It’s a drop-in solution that replaces custom export logic, saving dev time and reducing bugs. For example, the support team could auto-generate CSV exports of filtered tickets in seconds, cutting manual work by 30%."

For Engineering: *"Leverages Yajra’s DataTables + OpenSpout to offload exports to Laravel queues, avoiding memory issues. Key benefits:

  • Livewire integration: Add export buttons to any DataTable with <livewire:export-button>.
  • Formatting controls: Customize dates (mm/dd/yyyy), numbers (#,##0.00), and text (leading zeros).
  • Scalable: Handles large datasets via batch jobs (no UI timeouts).
  • Low maintenance: MIT-licensed, actively updated (Laravel 13 support). Tradeoff: Requires queue workers (php artisan queue:work) and OpenSpout (~5MB dependency)."*
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope
anil/file-picker
broqit/fields-ai