承接 boutdecode/sylius-etl-plugin 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

boutdecode/sylius-etl-plugin

Composer 安装命令:

composer require boutdecode/sylius-etl-plugin

包简介

SyliusETL plugin for Sylius

README 文档

README

Sylius Logo.

BoutDeCode Sylius ETL Plugin

Integrate a full ETL (Extract, Transform, Load) pipeline system into the Sylius admin panel.

Overview

This plugin adds a full-featured ETL workflow management system to the Sylius admin panel. It allows store administrators to define reusable Workflows (named chains of ordered ETL Steps), and execute them as Pipelines — either manually, via file upload, or on a schedule.

The plugin provides the ETL infrastructure (workflow management, pipeline execution, history tracking). Step implementations are defined in your application.

Features

  • Workflow management — create and configure reusable chains of ETL steps from the admin panel
  • Pipeline execution — run workflows as pipelines with JSON input, file upload, or scheduled execution
  • Execution history — detailed per-step and per-pipeline run history with status tracking
  • Step registry — register your own step services tagged with etl.step
  • State machine — pipeline lifecycle management with reset/execute transitions
  • Planned tasks — define recurring ETL jobs by binding a workflow to a cron expression; a new pipeline is created and dispatched automatically on each occurrence
  • Dedicated logging — separate pipeline log channel for ETL activity
  • Notifications — notify on pipeline success and/or failure per workflow, through pluggable providers (built-in email support)
  • Pipeline purge — opt-in scheduled cleanup of old completed/failed pipelines and their history, to keep storage bounded
  • Sylius admin integration — ETL section added to the admin sidebar with grid views for Workflows and Pipelines

Screenshots

Workflow list

Workflow list

Workflow editor — configure ordered steps with their configuration

Workflow editor

Pipeline list

Pipeline list

Pipeline detail — inspect pipeline and configuration

Pipeline detail

Execute a pipeline — provide a file upload, JSON input or a scheduled date; the workflow configuration can also be overridden at runtime per step

Execute a pipeline

Pipeline run history — per-step status and execution timeline

Pipeline run history

Requirements

  • PHP ^8.1
  • Sylius ^1.14
  • Symfony ^6.4
  • Symfony Messenger with an async transport

Installation

1. Require the plugin via Composer

composer require boutdecode/sylius-etl-plugin

2. Enable the plugin

Add the plugin to your config/bundles.php:

return [
    // ...
    BoutDeCode\SyliusETLPlugin\BoutDeCodeSyliusETLPlugin::class => ['all' => true],
];

3. Import the plugin configuration

PHP — create or update config/packages/bout_de_code_sylius_etl.php:

<?php

declare(strict_types=1);

use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

return static function (ContainerConfigurator $containerConfigurator): void {
    $containerConfigurator->import('@BoutDeCodeETLCoreBundle/Resources/config/config.yaml');
    $containerConfigurator->import('@BoutDeCodeSyliusETLPlugin/config/config.php');
};

YAML — create or update config/packages/bout_de_code_sylius_etl.yaml:

imports:
    - { resource: '@BoutDeCodeETLCoreBundle/Resources/config/config.yaml' }
    - { resource: '@BoutDeCodeSyliusETLPlugin/config/config.php' }

4. Import the admin routes

PHP — add to config/routes.php (or config/routes/sylius_admin.php):

<?php

declare(strict_types=1);

use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;

return static function (RoutingConfigurator $routingConfigurator): void {
    $routingConfigurator->import('@BoutDeCodeSyliusETLPlugin/config/routes/admin.php');
};

YAML — add to config/routes.yaml (or config/routes/sylius_admin.yaml):

bout_de_code_sylius_etl_admin:
    resource: '@BoutDeCodeSyliusETLPlugin/config/routes/admin.php'

5. Configure Symfony Messenger

Ensure an async transport is configured in config/packages/messenger.yaml:

framework:
    messenger:
        transports:
            async: '%env(MESSENGER_TRANSPORT_DSN)%'

6. Import the admin assets

Add a dedicated entry in your webpack.config.js:

const path = require('path');

Encore
    // ...
    .addEntry(
        'boutdecode-etl-plugin-admin-entry',
        path.resolve(
            __dirname,
            'vendor/boutdecode/sylius-etl-plugin/assets/admin/entrypoint.js'
        )
    )

Then include the compiled entry in your admin layout (e.g. templates/bundles/SyliusAdminBundle/layout.html.twig):

{{ encore_entry_script_tags('boutdecode-etl-plugin-admin-entry') }}
{{ encore_entry_link_tags('boutdecode-etl-plugin-admin-entry') }}

Then install and build the assets:

bin/console assets:install
yarn encore dev

7. Run database migrations

bin/console doctrine:migrations:migrate

8. Start the Messenger worker

Pipeline execution and planned task scheduling are processed asynchronously via Symfony Messenger. Start the worker with both the async and scheduler_etl transports:

bin/console messenger:consume async scheduler_etl

In production, use a process manager (Supervisor, systemd, etc.) to keep the worker running continuously.

Usage

Workflows

Navigate to Admin > ETL > Workflows to create a new Workflow. A workflow defines an ordered chain of steps, each with a step type code and a JSON configuration.

Step type codes correspond to services tagged etl.step registered in your application. See the etl-core documentation for instructions on how to create and register custom steps.

Notifications

Each workflow can be configured to notify on success and/or on failure, and to restrict which providers are used (leave empty to notify through every registered provider). The built-in email provider is configured globally in your application, not per workflow:

# config/packages/boutdecode_etl_core.yaml
boutdecode_etl_core:
    notifications:
        email:
            from: 'noreply@example.com'
            to: ['ops@example.com']
            subject_prefix: '[ETL]'

See the etl-core documentation for how to implement a custom notification provider (e.g. Slack).

Pipelines

Navigate to Admin > ETL > Pipelines to create and execute pipelines from existing workflows.

When creating a pipeline you can provide:

  • A JSON input payload
  • A file upload (e.g. a CSV file)
  • A JSON configuration override to customize step parameters at runtime
  • A scheduled date/time for deferred execution
  • A cron expression for recurring scheduled execution

Purging old Pipelines

The bundle can automatically delete old pipeline runs so that storage doesn't grow unbounded. This is handled by a scheduled job (disabled by default) that removes pipelines in a terminal state (completed or failed) whose finish date is older than a configurable retention window, together with their PipelineHistory and StepHistory records. WorkflowStatistic and WorkflowExecutionStatistic records are left untouched, so aggregated reporting survives pipeline purges.

# config/packages/boutdecode_etl_core.yaml
boutdecode_etl_core:
    purge:
        enabled: true                  # default: false
        retention_days: 30             # default: 30 — minimum: 1
        cron_expression: '0 3 * * *'   # default: '0 3 * * *' — any valid cron expression

See the etl-core documentation for details.

Planned tasks

Navigate to Admin > ETL > Planned tasks to create recurring ETL jobs.

A planned task binds a Workflow to a cron expression (e.g. 0 2 * * * for every day at 2 AM). Every minute the built-in Symfony Scheduler fires, picks up all enabled planned tasks, and dispatches an execution command for each one. The runner then:

  1. Creates a new Pipeline from the task's workflow, applying any per-task configuration and input overrides.
  2. Computes the next scheduled run date from the cron expression.
  3. Persists the pipeline and links it back to the planned task.

Available fields when creating a planned task:

Field Description
Name Human-readable label
Workflow The workflow to execute
Schedule Cron expression (e.g. */5 * * * *)
Enabled Toggle to activate/deactivate without deleting
Configuration JSON override merged on top of the workflow's step configuration
Input Inline JSON payload or a file upload used as pipeline input

Logging

Pipeline execution is logged to a dedicated file:

var/log/{env}_bout_de_code_sylius_etl_plugin.log

Testing

PHPUnit

vendor/bin/phpunit

Behat (non-JS scenarios)

vendor/bin/behat --strict --tags="~@javascript&&~@mink:chromedriver"

Behat (JS scenarios)

  1. Install Symfony CLI.

  2. Start Headless Chrome:

    google-chrome-stable --enable-automation --disable-background-networking --no-default-browser-check --no-first-run --disable-popup-blocking --disable-default-apps --allow-insecure-localhost --disable-translate --disable-extensions --no-sandbox --enable-features=Metal --headless --remote-debugging-port=9222 --window-size=2880,1800 --proxy-server='direct://' --proxy-bypass-list='*' http://127.0.0.1
  3. Start the test application server:

    symfony server:ca:install
    APP_ENV=test symfony server:start --port=8080 --daemon
  4. Run Behat:

    vendor/bin/behat --strict --tags="@javascript,@mink:chromedriver"

Static Analysis

vendor/bin/phpstan analyse -c phpstan.neon -l max src/

Coding Standards

vendor/bin/ecs check

License

This plugin is released under the MIT License.

boutdecode/sylius-etl-plugin 适用场景与选型建议

boutdecode/sylius-etl-plugin 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 186 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 04 月 08 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「sylius」 「sylius-plugin」 「test-appication」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 boutdecode/sylius-etl-plugin 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 boutdecode/sylius-etl-plugin 我们能提供哪些服务?
定制开发 / 二次开发

基于 boutdecode/sylius-etl-plugin 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 186
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 43
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-08