Download the PHP package code-rhapsodie/dataflow-bundle without Composer

On this page you can find all versions of the php package code-rhapsodie/dataflow-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package dataflow-bundle

Code Rhapsodie Dataflow Bundle

DataflowBundle is a bundle for Symfony 3.4+ providing an easy way to create import / export dataflow.

Dataflow uses a linear generic workflow in three parts:

The reader can read data from anywhere and return data row by row. Each step processes the current row data. The steps are executed in the order in which they are added. And, one or more writers save the row anywhere you want.

As the following schema shows, you can define more than one dataflow:

Features

Installation

Security notice: Symfony 4.x is not supported before 4.1.12, see https://github.com/advisories/GHSA-pgwj-prpq-jpc2

Add the dependency

To install this bundle, run this command :

Suggest

You can use the generic readers, writers and steps from PortPHP.

For the writers, you must use the adapter CodeRhapsodie\DataflowBundle\DataflowType\Writer\PortWriterAdapter like this:

Register the bundle

Symfony 4 (new tree)

For Symfony 4, add CodeRhapsodie\DataflowBundle\CodeRhapsodieDataflowBundle::class => ['all' => true], in the config/bundles.php file.

Like this:

Symfony 3.4 (old tree)

For Symfony 3.4, add a new line in the app/AppKernel.php file.

Like this:

Update the database

This bundle uses Doctrine DBAL to store Dataflow schedule into the database table (cr_dataflow_scheduled) and jobs (cr_dataflow_job).

If you use Doctrine Migration Bundle or Phinx or Kaliop Migration Bundle or whatever, you can add a new migration with the generated SQL query from this command:

If you have already the tables, you can add a new migration with the generated update SQL query from this command:

Configuration

By default, the Doctrine DBAL connection used is default. You can configure the default connection. Add this configuration into your Symfony configuration:

By default, the logger service will be used to log all exceptions and custom messages. If you want to use another logger, like a specific Monolog handler, Add this configuration:

Messenger mode

Dataflow can delegate the execution of its jobs to the Symfony messenger component, if available. This allows jobs to be executed concurrently by workers instead of sequentially.

To enable messenger mode:

You also need to route Dataflow messages to the proper transport:

Define a dataflow type

This bundle uses a fixed and simple workflow structure in order to let you focus on the data processing logic part of your dataflow.

A dataflow type defines the different parts of your dataflow. A dataflow is made of:

Dataflow types can be configured with options.

A dataflow type must implement CodeRhapsodie\DataflowBundle\DataflowType\DataflowTypeInterface.

To help with creating your dataflow types, an abstract class CodeRhapsodie\DataflowBundle\DataflowType\AbstractDataflowType is provided, allowing you to define your dataflow through a handy builder CodeRhapsodie\DataflowBundle\DataflowType\DataflowBuilder.

This is an example to define one class DataflowType:

Dataflow types must be tagged with coderhapsodie.dataflow.type.

If you're using Symfony auto-configuration for your services, this tag will be automatically added to all services implementing DataflowTypeInterface.

Otherwise, manually add the tag coderhapsodie.dataflow.type in your dataflow type service configuration:

yaml CodeRhapsodie\DataflowExemple\DataflowType\MyFirstDataflowType: tags:

Symfony Container Public and Private Services Tagged with "coderhapsodie.dataflow.type" Tag


Service ID Class name


CodeRhapsodie\DataflowExemple\DataflowType\MyFirstDataflowType CodeRhapsodie\DataflowExemple\DataflowType\MyFirstDataflowType


shell script $ SYMFONY_ENV=prod php bin/console code-rhapsodie:dataflow:run-pending shell script $ bin/console code-rhapsodie:dataflow:dump-schema --update --connection=default shell script

Run for dataflow DBAL connection

$ bin/console code-rhapsodie:dataflow:run-pending --connection=dataflow

Run for default DBAL connection

$ bin/console code-rhapsodie:dataflow:run-pending --connection=default



# Issues and feature requests

Please report issues and request features at https://github.com/code-rhapsodie/dataflow-bundle/issues.

Please note that only the last release of the 3.x and the 4.x versions of this bundle are actively supported.

# Contributing

Contributions are very welcome. Please see [CONTRIBUTING.md](CONTRIBUTING.md) for
details. Thanks to [everyone who has contributed](https://github.com/code-rhapsodie/dataflow-bundle/graphs/contributors)
already.

# License

This package is licensed under the [MIT license](LICENSE).

All versions of dataflow-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
ext-json Version *
doctrine/dbal Version ^2.12||^3.0
doctrine/doctrine-bundle Version ^1.0||^2.0
monolog/monolog Version ^1.0||^2.0
psr/log Version ^1.1||^2.0||^3.0
symfony/config Version ^3.4||^4.0||^5.0||^6.0
symfony/console Version ^3.4||^4.0||^5.0||^6.0
symfony/dependency-injection Version ^3.4||>=4.1.12||^5.0||^6.0
symfony/event-dispatcher Version ^3.4||^4.0||^5.0||^6.0
symfony/http-kernel Version ^3.4||^4.0||^5.0||^6.0
symfony/lock Version ^3.4||^4.0||^5.0||^6.0
symfony/monolog-bridge Version ^3.4||^4.0||^5.0||^6.0
symfony/options-resolver Version ^3.4||^4.0||^5.0||^6.0
symfony/validator Version ^3.4||^4.0||^5.0||^6.0
symfony/yaml Version ^3.4||^4.0||^5.0||^6.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package code-rhapsodie/dataflow-bundle contains the following files

Loading the files please wait ....