php-etl/spreadsheet-plugin

Plugin for XLS Extractor and Loader

Installs: 3 253

Dependents: 0

Suggesters: 1

Security: 0

Stars: 0

Watchers: 2

Forks: 1

Open Issues: 1

Type:gyroscops-plugin

v0.5.2 2023-04-20 09:21 UTC

README

Mutations PHPUnit Quality PHPStan level 5 PHPStan level 6 PHPStan level 7 PHPStan level 8 PHP

This package aims at integrating the Spreadsheet or the Opendocument reader and writer into the Pipeline stack.

Principles

The tools in this library will produce executable PHP sources, using an intermediate Abstract Syntax Tree from nikic/php-parser. This intermediate format helps you combine the code produced by this library with other packages from Middleware.

Installation

composer require php-etl/spreadsheet-plugin

Usage

Example of a config file. Reads input.xlsx, writes output.xlsx, logs error in system's stderr.

spreadsheet:
    extractor:
      file_path: 'input.xlsx'
      excel:
        sheet: 'sheet2'
        skip_line: 1
#  loader:
#    file_path: 'output.xlsx'
#    excel:
#      sheet: 'sheet2'
    logger:
        type: stderr