Download the PHP package oliverde8/php-etl-bundle without Composer
On this page you can find all versions of the php package oliverde8/php-etl-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download oliverde8/php-etl-bundle
More information about oliverde8/php-etl-bundle
Files in oliverde8/php-etl-bundle
Package php-etl-bundle
Short Description Allow usage of the PHP-ETL library in symfony framework.
License MIT
Informations about the package php-etl-bundle
PHP Etl Bundle
The Php etl bundle allows the usage of Oliver's PHP Etl library in symfony.
You should also check the PHP ETL's Easy Admin Bundle to have interfaces.
Installation
-
Install using composer
-
in
/config/
create a directoryetl
-
Enable bundle:
-
Optional: Enable queue if you wish to allow users from the easy admin panel to do executions.
- Optional: Enable creation of individual files for each log by editing the monolog.yaml
Usage
Creating an ETL chain
First read the documentation of the PHP ETL
Each chain is declare in a single file. The name of the chain is the name of the file created in /config/etl/
.
Example:
Executing a chain
The first argument is the input, depending on your chain it can be empty. The second are parameters that will be available in the context of each link in the chain.
Additional commands
Get a definition
Adding your own chain operation
To add your own chain operation you need 2 classes. The operation itself that we will call
MyVendor\Etl\Operation\OurTestOperation
, and a MyVendor\Etl\OperationFactory\OurTestOperationFactory
factory
to create it. The factory allows us to configure the operation and inject service to our operation.
All operations needs to implement DataChainOperationInterface
; they can extend AbstractChainOperation
.
All factories needs to extend Oliverde8\Component\PhpEtl\Builder\Factories\AbstractFactory
.
The operation is a Model and not a service, you therefore need to add the path to the exclusions so that it's not made a service by symfony:
Factories needs to be tagged `etl.operation-factory\ . To remove the need to tag all your factories you can add the following line your your services.yaml file
For more information on how the etl works and how to create operations check the Php Etl Documentation
All versions of php-etl-bundle with dependencies
oliverde8/php-etl Version ^v1.2.0-alpha1
symfony/framework-bundle Version ^5.4|^6.0|^7.0
symfony/messenger Version ^5.4|^6.0|^7.0
ext-json Version *