leomarquine / php-etl by leomarquine

Extract, Transform and Load data using PHP.
119,723
177
11
Package Data
Maintainer Username: leomarquine
Maintainer Contact: leonardomarquine@gmail.com (Leonardo Marquine)
Package Create Date: 2016-06-27
Package Last Update: 2022-10-16
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-04-19 15:09:31
Package Statistics
Total Downloads: 119,723
Monthly Downloads: 994
Daily Downloads: 43
Total Stars: 177
Total Watchers: 11
Total Forks: 81
Total Open Issues: 11

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 white spaces from the name and email columns and then insert the values into the users table:

use Marquine\Etl\Etl;

$etl = new Etl;

$etl->extract('csv', '/path/to/users.csv')
    ->transform('trim', ['columns' => ['name', 'email']])
    ->load('insert', 'users')
    ->run();

License

PHP ETL is licensed under the MIT license.