dev-master
9999999-devETL
MIT
The Requires
- cakephp/chronos ^1.1
- php ^7.1.3
The Development Requires
dev-analysis-Xarp3V
dev-analysis-Xarp3VETL
MIT
The Requires
- cakephp/chronos ^1.1
- php ^7.1.3
The Development Requires
ETL
, (*1)
Metamorphose - Transform your data, (*2)
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]
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']
ETL
MIT
ETL
MIT