konarsourav / xls_serialization
Provides Excel as a serialization format.
Installs: 3 818
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:drupal-module
Requires
- phpoffice/phpspreadsheet: dev-master
This package is not auto-updated.
Last update: 2024-06-15 04:33:51 UTC
README
Excel Serialization
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/SpreadSheet. The preferred installation method is to use Composer.
- Enable the
xls_serialization
module.
Creating an XLS view
- Create a new view
- Add an Excel Export display for more formatting options. Otherwise add a REST Export view.
- Check either 'xlsx' or 'xls' for the accepted request formats under
Format -> Excel export -> Settings
. - Add desired fields to the view.
- Add a path, and optionally, a filename pattern.