php-etl / csv-plugin
Plugins for CSV Extractor and Loader
Installs: 3 806
Dependents: 0
Suggesters: 1
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 2
Type:gyroscops-plugin
Requires
- php: ^8.2
- ext-json: *
- nikic/php-parser: ^4.10
- php-etl/configurator-contracts: 0.8.*
- php-etl/packaging-contracts: 0.3.*
- php-etl/satellite-toolbox: *
- symfony/config: ^6.0
- symfony/expression-language: ^6.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- infection/infection: ^0.26.18
- mikey179/vfsstream: ^1.6
- php-etl/csv-flow: *
- php-etl/phpunit-extension: *
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^10.0
- rector/rector: ^0.15
This package is auto-updated.
Last update: 2024-11-14 09:41:38 UTC
README
This package aims at integrating the CSV 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/csv-plugin
Usage
Example of a config file. Reads input.csv
, writes output.csv
, logs error in system's stderr.
csv: extractor: file_path: input.csv delimiter: ';' enclosure: '"' escape: '\\' loader: file_path: output.csv delimiter: ',' enclosure: '"' escape: '\\' logger: type: stderr