PHP code example of bookeen / etl-workflow
1. Go to this page and download the library: Download bookeen/etl-workflow library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
bookeen / etl-workflow example snippets
$workflow = new Workflow();
$workflow->setExtractor(new YourExtractor());
$workflow->setTransformer(new YourTransformer());
$workflow->setLoader(new YourLoader());
$workflow->process();
$workflow = new Workflow();
// Dispatch ProgressBar helper for CLI
$dispatcher = $this->getContainer()->get('event_dispatcher');
$dispatcher->addSubscriber(new WorkflowProgressBarSubscriber($output));
$workflow->setDispatcher($dispatcher);
// ...
$workflow->process();