luremo/craft-data-export-builder
Composer 安装命令:
composer require luremo/craft-data-export-builder
包简介
Reusable CSV, JSON, XLSX, and XML exports for Craft CMS teams that need reporting, migrations, and operational handoffs without custom scripts.
README 文档
README
Data Export Builder
Reusable CSV, JSON, XLSX, and XML exports for Craft CMS — define an export once, run it on demand.
Data Export Builder gives Craft CMS teams a reusable export workflow for reporting, migrations, operational handoffs, and Commerce data movement. Instead of rebuilding one-off export templates or custom scripts every time a client asks for data, define an export once, save it, and run it again whenever you need it. Small exports run immediately; larger exports run through the Craft queue and stay available for download from run history.
Built for agencies, freelancers, and in-house Craft teams that repeatedly need clean exports without turning every request into bespoke development work.
Supported Element Types
| Element Type | Standard | Pro |
|---|---|---|
| Entries | ✓ | ✓ |
| Users | ✓ | ✓ |
| Categories | ✓ | ✓ |
| Tags | ✓ | ✓ |
| Assets | ✓ | ✓ |
| Formie Submissions † | — | ✓ |
| Wheelform Submissions † | — | ✓ |
| Commerce Orders ‡ | — | ✓ |
| Commerce Products ‡ | — | ✓ |
| Commerce Variants ‡ | — | ✓ |
† Pro edition; available when the Formie or Wheelform plugin is installed and enabled. ‡ Requires Craft Commerce and the Pro edition.
Supported Output Formats
| Format | Standard | Pro |
|---|---|---|
| CSV | ✓ | ✓ |
| JSON | ✓ | ✓ |
| XLSX | — | ✓ |
| XML | — | ✓ |
XML exports (Pro) produce a generic row-based document: a configurable root element, one configurable row element per exported item, and one child element per selected field. Field tag names are generated from export column titles ("Order Number" becomes <order_number>; duplicate generated names get _2, _3 suffixes). Values are flattened to readable text the same way CSV flattens them.
Features
- 📤 Export the elements you actually use — entries, users, categories, tags, and assets, plus Commerce orders, products, and variants in Pro.
- 📝 Export form submissions (Pro) — Formie and Wheelform submissions, filtered by form.
- 🧩 Pick fields without code — native attributes, custom fields, relation fields, and practical Matrix sub-field paths, all from one field picker.
- 🔃 Shape the output — rename and reorder columns, and choose CSV, JSON, XLSX, or XML.
- 🔍 Filter precisely — by section, site, form, status, keyword, created date, relations, and selected field values where supported.
- ⚡ Start from presets — one-click Commerce starting points (Order Ops, Catalog Feed, Inventory Feed) prefill sensible columns.
- ♻️ Reuse everything — save export templates and run them again on demand.
- ⏱️ Scale safely — small exports run immediately; larger ones queue and download later from run history.
- 🤖 Automate (Pro) — schedule recurring exports and deliver them by email, webhook, or to a Craft asset volume.
Requirements
- PHP 8.2+ (with the
xmlwriterextension, enabled by default) - Craft CMS 5.0+
- Craft queue configured (for larger exports)
- Craft Commerce (optional, for order/product/variant exports)
- Formie or Wheelform (optional, for form submission exports — Pro edition)
Installation
Install from the Plugin Store in the Craft Control Panel (search for Data Export Builder), or with Composer:
composer require luremo/craft-data-export-builder php craft plugin/install data-export-builder
Then grant the plugin permissions to the right user groups.
Quick Start
- Open Exports in the Craft Control Panel.
- Create a new export template.
- Choose an element type.
- Add the fields you want to export.
- Rename and reorder the selected columns.
- Apply filters if needed.
- Save the template.
- Run the export.
- Download the completed file from run history.
Field Support
The field picker includes:
- native element attributes
- common meta values like title, slug, uri, status, and dates
- custom fields
- relation fields
- practical Matrix sub-field paths
Dates are normalized to Y-m-d H:i:s. CSV output uses native fputcsv() escaping for commas, quotes, and multiline values. Relation values export as comma-separated readable values in CSV, and as arrays where practical in JSON.
Queue Behavior
- Each template has a queue threshold.
- Exports at or below the threshold run immediately.
- Larger exports create a queued export run.
- Completed runs remain downloadable from the template screen.
- Failed runs store an error message.
Automation & Delivery (Pro)
Configure automation per export template under Settings:
- Scheduled exports are queued by running
php craft data-export-builder/scheduler/run. When a scheduled run is due, the plugin creates a normal export run for that template. - Email delivery sends the exported file as an attachment.
- Webhook delivery posts the export payload and file to the configured endpoint.
- Remote storage uploads a copy to a selected Craft asset volume. Keep local downloadable copy retains the local run file after upload.
- Failed runs stay in run history and can be retried from the Control Panel.
Permissions
manageDataExportsrunDataExportsdownloadDataExports
Data Handling & Retention
Exports can contain personal data (user records, Commerce order and customer details). Handle the output accordingly:
- Completed export files are written to Craft's storage and remain on disk until you delete the run from run history. They are not auto-expired.
- Download access is gated by the
downloadDataExportspermission. - Pro webhook delivery posts the export payload to your configured endpoint; the endpoint URL and any secret you set are stored in the template config. Use HTTPS endpoints and rotate secrets if exposed.
- Pro email delivery sends the exported file as an attachment to the addresses you configure.
- For sites with data-retention obligations, periodically prune old runs (and any remote copies) so exported personal data is not retained longer than needed.
Editions
Data Export Builder declares native Craft plugin editions:
- Standard — general content exports (CSV, JSON).
- Pro — Commerce-focused workflows, XLSX, XML, scheduling, and delivery.
| Edition | Price |
|---|---|
| Standard | $29 |
| Pro | $69 |
Set the edition through Craft plugin editions, not environment variables. Craft stores the active edition in project config; change it via plugins.data-export-builder.edition when testing edition-gated behavior locally. See docs/pricing-edition-notes.md for edition rationale and pricing direction after launch validation.
Support
- Bug reports: GitHub Issues (please include reproduction steps).
- Commercial support: contact Luremo through the Craft Plugin Store listing.
- Changelog: CHANGELOG.md
License
Commercial. See LICENSE.md. Licenses are sold through the Craft Plugin Store.
Screenshots
The Exports index — every saved template, ready to run.
Build a template: choose an element type, pick fields, rename and reorder columns.
Run history with queued, completed, and failed runs.
A Commerce order export template (Pro).
Built by Luremo for the Craft CMS community.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2026-07-02



