This module provides an Excel encoder for the Drupal 8 Serialization API. This
enables the XLS format to be used for data output (and potentially input,
eventually). For example:
- Drupal 8's REST module can return data in XLS format.
- Views can output XLS data via a 'REST Export' view, or a
Data Export view. - Module developers can leverage XLS as a format when using the Serialization
API.
Installation
- Download and install PHPOffice/PhpSpreadsheet. The suggested installation method is to use Composer.
- Enable the
xls_serializationmodule.
Creating an XLS view
- Create a new view
- Add a Data Export display (this assumes the use of the Views Data Export) module. Otherwise add a REST Export view.
- Check only 'xls' for the accepted request formats under
Format > Data export > Settings. - Add desired fields to the view.
- Add a path, and optionally, a filename pattern.
Related modules
- The Views Data Export Excel module extends the DataExport Views style and display classes from the Views Data Export module using the serializer provided by this module.
Supporting organizations:
Sponsored development of this module.
Sponsored development of this module.
Sponsored development of this module.
Project information
Seeking co-maintainer(s)
Maintainers are looking for help reviewing issues.- Project categories: Content editing experience, Import and export
12,484 sites report using this module
- Created by jhedstrom on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
2.1.0
released 6 January 2026
Works with Drupal: ^9 || ^10 || ^11
Install:
Development version: 2.1.x-dev updated 21 May 2026 at 09:22 UTC
2.0.4
released 6 January 2026
Works with Drupal: ^9 || ^10 || ^11
Install:
Development version: 2.0.x-dev updated 2 Dec 2025 at 22:16 UTC
8.x-1.9
released 26 January 2025
Works with Drupal: ^9 || ^10 || ^11
Install:
Development version: 8.x-1.x-dev updated 26 Jan 2025 at 18:38 UTC

