simperfit / etl-workflow
Extract-Transform-Load workflow library
v2.1.0
2019-04-16 08:20 UTC
Requires
- php: >=5.5.9
- psr/log: ~1.0
- symfony/console: ~3.0 | ~4.0
This package is auto-updated.
Last update: 2025-03-16 21:54:24 UTC
README
This bundle provide a simple Extract-Transform-Load Workflow with ETL interfaces.
Install
composer require "bookeen/etl-workflow:1.2.1"
In your Smfony CLI
$workflow = new Workflow(); $workflow->setExtractor(new YourExtractor()); $workflow->setTransformer(new YourTransformer()); $workflow->setLoader(new YourLoader()); $workflow->process();
You can add a ProgressBar for CLI
$workflow = new Workflow(); // Dispatch ProgressBar helper for CLI $dispatcher = $this->getContainer()->get('event_dispatcher'); $dispatcher->addSubscriber(new WorkflowProgressBarSubscriber($output)); $workflow->setDispatcher($dispatcher); // ... $workflow->process();