Skip to content

php-etl/json-plugin

Repository files navigation

JSON Plugin

This package aims at integrating the json extractor and loader into the

Quality (PHPStan lvl 4) PHPUnit Mutations PHPStan level 5 PHPStan level 6 PHPStan level 7 PHPStan level 8 PHP

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/json-plugin

Usage

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

json:
  extractor:
    file_path: 'input.jsonld'
#  loader:
#    file_path: 'output.jsonld'
  logger:
    type: stderr