2017 © Pedro Peláez
 

library metamorphose

ETL

image

power-data-hub/metamorphose

ETL

  • Tuesday, June 26, 2018
  • by edbizarro
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3,452 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 10 Versions
  • 2420 % Grown

The README.md

, (*1)

Metamorphose - Transform your data, (*2)

Build Status StyleCI Latest Stable Version License , (*3)


Here are a few examples on how you can use the package:, (*4)

use \PowerDataHub\Metamorphose\Transformers\TrimTransformer;
use \PowerDataHub\Metamorphose\Metamorphose;

$result = app(Metamorphose::class)
    ->from(['name' => ' John Doe ')
    ->through(TrimTransformer::class)
    ->transform();

// Output

['name' => 'John Doe']

You can pass as many transformers as you want:, (*5)

use \PowerDataHub\Metamorphose\Transformers\TrimTransformer;
use \PowerDataHub\Metamorphose\Transformers\PercentTransformer;
use \PowerDataHub\Metamorphose\Transformers\NumericTransformer;
use \PowerDataHub\Metamorphose\Metamorphose;

app(Metamorphose::class)
    ->from(['name' => ' John Doe ', 'age' => '33', 'score' => '33.987'])
    ->through([
        TrimTransformer::class,
        PercentTransformer::class,        
        NumericTransformer::class,
    ])
    ->transform();

//Output

['name' => 'John Doe', 'age' => 33, 'score' => 33.99]

Installation

You can install the package via composer:, (*6)

``` bash composer require power-data-hub/metamorphose, (*7)


--- ## Transformers Metamorphose come with some useful transformers #### Trim ```php use \PowerDataHub\Metamorphose\Transformers\TrimTransformer; app(Metamorphose::class) ->from(['name' => ' John', 'last_name' => ' Doe ']) ->through(TrimTransformer::class) ->transform(); // Output ['name' => 'John', 'last_name' => 'Doe']

forthebadge, (*8)

The Versions

26/06 2018

dev-master

9999999-dev

ETL

  Sources   Download

MIT

The Requires

 

The Development Requires

26/05 2018
17/04 2018

dev-analysis-Xarp3V

dev-analysis-Xarp3V

ETL

  Sources   Download

MIT

The Requires

 

The Development Requires

16/04 2018

v0.1.5

0.1.5.0

ETL

  Sources   Download

MIT

The Requires

 

The Development Requires

16/04 2018

v0.1.6

0.1.6.0

ETL

  Sources   Download

MIT

The Requires

 

The Development Requires

14/04 2018

v0.1.4

0.1.4.0

ETL

  Sources   Download

MIT

The Requires

 

The Development Requires

13/04 2018

v0.1.3

0.1.3.0

ETL

  Sources   Download

MIT

The Requires

 

The Development Requires

12/04 2018

v0.1.2

0.1.2.0

ETL

  Sources   Download

MIT

The Requires

 

The Development Requires

12/04 2018

v0.1.1

0.1.1.0

ETL

  Sources   Download

MIT

The Requires

 

The Development Requires

12/04 2018

v0.1.0

0.1.0.0

ETL

  Sources   Download

MIT

The Requires

 

The Development Requires