PHPackages                             doefom/statamic-export - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. doefom/statamic-export

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

doefom/statamic-export
======================

v0.6.5(7mo ago)721.1k↓23.7%9[3 issues](https://github.com/doefom/statamic-export/issues)[2 PRs](https://github.com/doefom/statamic-export/pulls)MITPHPPHP &gt;=8.1

Since Feb 25Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/doefom/statamic-export)[ Packagist](https://packagist.org/packages/doefom/statamic-export)[ RSS](/packages/doefom-statamic-export/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (20)Used By (0)

Statamic Export
===============

[](#statamic-export)

> **Export entries, collections and users** from Statamic to a variety of formats including **XLSX, CSV, HTML and more**.

### Supported versions

[](#supported-versions)

- ✅ Statamic v4
- ✅ Statamic v5

Features
--------

[](#features)

### Export Entries and Collections

[](#export-entries-and-collections)

Get your entries and collections ready in the format you need. Currently, we support the following formats:

- **XLSX:** Ideal for detailed data analysis and reporting in Excel.
- **CSV:** Perfect for data import/export with other systems.
- **TSV:** A tab-separated format, offering an alternative to CSV.
- **ODS:** For users of OpenDocument spreadsheet applications.
- **XLS:** Compatible with older versions of Excel.
- **HTML:** Web-friendly format, easily convertible to PDF with online tools.

> Why no PDF you ask? Well, we're working on it. But for now, you can use the HTML format and convert it to PDF using a variety of tools available online.

We tried to use the best human-readable representation for each fieldtype. For example, the `Entries` fieldtype will be represented as a comma separated list of entry titles instead of multiple entry IDs.

### Export Users

[](#export-users)

Exporting users works the same way as exporting entries. You can either export specific users via the user listing or export all users using the utility.

Supported Fieldtypes
--------------------

[](#supported-fieldtypes)

So, there are quite a few fieldtypes available in Statamic. We're supporting **all of them**, even custom ones. The fieldtypes `\Statamic\Fieldtypes\Hidden`, `\Statamic\Fieldtypes\Revealer`, `\Statamic\Fieldtypes\Html` and `\Statamic\Fieldtypes\Spacer` are excluded by default because they don't contain any data.

### Custom Fieldtypes

[](#custom-fieldtypes)

If your custom fieldtypes extend one of the default fieldtypes, it should work just fine as is. But if you have a fully custom fieldtype, you can add support for it by defining it in the `config/export.php` file and providing a closure that returns a string representation of the field value.

```
