Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 1.25 KB

readme.md

File metadata and controls

40 lines (31 loc) · 1.25 KB

PHP ETL

Build Status Latest Stable Version Latest Unstable Version License

Extract, Transform and Load data using PHP.

Installation

In your application's folder, run:

composer require marquine/php-etl

Documentation

Documentation can be found here.

Example

In the example below, we will extract data from a csv file, trim two columns and load the data into database:

use Marquine\Etl\Job;

Job::start()->extract('csv', 'path/to/file.csv')
    ->transform('trim', ['columns' => ['name', 'email']])
    ->load('table', 'users');

or

use Marquine\Etl\Job;

$job = new Job;
$job->extract('csv', 'path/to/file.csv')
    ->transform('trim', ['columns' => ['name', 'email']])
    ->load('table', 'users');

License

PHP ETL is licensed under the MIT license.