PHPackages                             webcraftdg/data-pipeline - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. webcraftdg/data-pipeline

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

webcraftdg/data-pipeline
========================

Framework-agnostic PHP data pipeline engine for reading, mapping, transforming, processing and writing structured data.

1.4.0(1w ago)011MITPHPPHP ^8.3

Since Apr 12Pushed 1w agoCompare

[ Source](https://github.com/webcraftdg/data-pipeline)[ Packagist](https://packagist.org/packages/webcraftdg/data-pipeline)[ Docs](https://github.com/webcraftdg/data-pipeline)[ RSS](/packages/webcraftdg-data-pipeline/feed)WikiDiscussions devel Synced 1w ago

READMEChangelogDependencies (8)Versions (9)Used By (0)

webcraftdg/data-pipeline
========================

[](#webcraftdgdata-pipeline)

[![Coverage](https://camo.githubusercontent.com/9daea6564e174bd10f66bf85da377064b8a9a14e845f3616dcb5b4101f8b3571/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f7665726167652d38352e392532352d627269676874677265656e)](https://camo.githubusercontent.com/9daea6564e174bd10f66bf85da377064b8a9a14e845f3616dcb5b4101f8b3571/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f7665726167652d38352e392532352d627269676874677265656e)[![Maintainability](https://camo.githubusercontent.com/2809171553c3d60756527359fab4247504d081a554fd7e7aa069ff13727b0af7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d61696e7461696e6162696c6974792d412d627269676874677265656e)](https://camo.githubusercontent.com/2809171553c3d60756527359fab4247504d081a554fd7e7aa069ff13727b0af7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d61696e7461696e6162696c6974792d412d627269676874677265656e)[![Reliability](https://camo.githubusercontent.com/cda26911a9a1f3560fabacec5800fd3914e54db5f2569e5c16f4ff5647c60080/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f72656c696162696c6974792d412d627269676874677265656e)](https://camo.githubusercontent.com/cda26911a9a1f3560fabacec5800fd3914e54db5f2569e5c16f4ff5647c60080/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f72656c696162696c6974792d412d627269676874677265656e)[![Security](https://camo.githubusercontent.com/471a9681e0ac38d8679a633282a1d2eb78306eee0ecf792934cc930a27460db0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73656375726974792d412d627269676874677265656e)](https://camo.githubusercontent.com/471a9681e0ac38d8679a633282a1d2eb78306eee0ecf792934cc930a27460db0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73656375726974792d412d627269676874677265656e)

Moteur générique de transformation de données en PHP.

OBJECTIF
--------

[](#objectif)

Ce composant permet de transformer des données d'un format à un autre de manière propre, réutilisable et maintenable.

### Exemples :

[](#exemples-)

- CSV → Base de données
- Base de données → Excel
- JSON → XML
- Array → JSON

CONCEPT
-------

[](#concept)

Le système repose sur un flux :

Source → Pipeline → Target

Il n'y a pas de notion technique d'import/export, seulement un flux de données.

FONCTIONNEMENT
--------------

[](#fonctionnement)

### Le pipeline suit ces étapes :

[](#le-pipeline-suit-ces-étapes-)

Input → Mapping → Transformers → Processor → Output

- Input : lit les données
- Mapping : renomme les colonnes
- Transformers : transforme les valeurs
- Processor : applique la logique métier
- Output : écrit les données

### EXEMPLE COMPLET

[](#exemple-complet)

```
$config = new PipelineConfig(
    name: 'users',
    version: 1,
    stopOnError: true,
    source: new SourceConfig('input', 'array', [
        'data' => [
            ['id' => 1, 'name' => 'david', 'email' => 'test@mail.com'],
            ['id' => 2, 'name' => 'jean', 'email' => '']
        ]
    ]),
    target: new TargetConfig('output', 'json', [
        'path' => 'output.json'
    ]),
    columns: [
        new ColumnMapping('id', 'ID'),
        new ColumnMapping('name', 'Name', [
            new TransformerConfig('upper')
        ])
    ],
    processor: new ProcessorConfig('validate-email')
);

$runtime = $runtimeFactory->create($config);
$report = $executor->run($config, $runtime);
```

- [Installation](./src/docs/installation.md)
- [Pipeline](./src/docs/pipeline.md)
- [Input](./src/docs/input.md)
- [Processor](./src/docs/processor.md)
- [transformer](./src/docs/transformer.md)
- [Extension](./src/docs/extension.md)
- [Exemple complet](./src/docs/example-csv-to-db.md)

[![Sonar Report](./src/docs/images/report.png)](./src/docs/images/report.png)

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance98

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~8 days

Total

7

Last Release

8d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8821954?v=4)[Ghyse](/maintainers/dghyse)[@dghyse](https://github.com/dghyse)

---

Top Contributors

[![dghyse](https://avatars.githubusercontent.com/u/8821954?v=4)](https://github.com/dghyse "dghyse (16 commits)")

---

Tags

phpjsonxmlexportxlsxcsvimportmappingtransformationetldata-pipeline

###  Code Quality

TestsCodeception

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/webcraftdg-data-pipeline/health.svg)

```
[![Health](https://phpackages.com/badges/webcraftdg-data-pipeline/health.svg)](https://phpackages.com/packages/webcraftdg-data-pipeline)
```

###  Alternatives

[maatwebsite/excel

Supercharged Excel exports and imports in Laravel

12.7k152.8M844](/packages/maatwebsite-excel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
