1. Go to this page and download the library: Download bentools/etl library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
bentools / etl example snippets
use BenTools\ETL\EtlExecutor;
// Given
$singers = ['Bob Marley', 'Amy Winehouse'];
// Transform each singer's name to uppercase and process the array
$etl = (new EtlExecutor())
->transformWith(fn (string $name) => strtoupper($name));
// When
$report = $etl->process($singers);
// Then
var_dump($report->output); // ["BOB MARLEY", "AMY WINEHOUSE"]
$report = $executor->process(destination: 'file:///tmp/presidents.json');
var_dump($report->output); // string 'file:///tmp/presidents.json' - content has been written here
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.