PHPackages                             florianeckerstorfer/data-import-extra - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. florianeckerstorfer/data-import-extra

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

florianeckerstorfer/data-import-extra
=====================================

Extra utlities for ddeboer/data-import.

06PHP

Since Sep 24Pushed 11y ago1 watchersCompare

[ Source](https://github.com/florianeckerstorfer/data-import-extra)[ Packagist](https://packagist.org/packages/florianeckerstorfer/data-import-extra)[ RSS](/packages/florianeckerstorfer-data-import-extra/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

DataImportExtra
===============

[](#dataimportextra)

> Additional item and value converters for [ddeboer/data-import](https://github.com/ddeboer/data-import).

[![Build Status](https://camo.githubusercontent.com/b74acf04e0195c035bd8c50ec7e13ac8878465a319046901345f966d2526be31/68747470733a2f2f7472617669732d63692e6f72672f666c6f7269616e65636b657273746f726665722f646174612d696d706f72742d65787472612e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/florianeckerstorfer/data-import-extra)[![Code Climate](https://camo.githubusercontent.com/787dc7761fcdf6141ccdea5faa16261908d611f28800948bd6bd68e5d089ff7d/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f666c6f7269616e65636b657273746f726665722f646174612d696d706f72742d65787472612f6261646765732f6770612e737667)](https://codeclimate.com/github/florianeckerstorfer/data-import-extra)[![Test Coverage](https://camo.githubusercontent.com/cffdff56e468e2ae074b257d27eeb07fb3f5afcfc5684137136eff71ad3cf954/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f666c6f7269616e65636b657273746f726665722f646174612d696d706f72742d65787472612f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/florianeckerstorfer/data-import-extra)

Installation
------------

[](#installation)

You can install DataImportExtra using [Composer](http://getcomposer.org):

```
$ composer require florianeckerstorfer/data-import-extra:@stable
```

Usage
-----

[](#usage)

### Item Converters

[](#item-converters)

#### RemoveEmptyColumnItemConverter

[](#removeemptycolumnitemconverter)

Removes columns with an empty key from the items.

```
$converter = new RemoveEmptyColumnItemConverter();
$input = ['key' => 'value', '' => '', "\n" => '', ' ' => ''];
$this->converter->convert($input); // ['key' => 'value']
```

### Value Converters

[](#value-converters)

#### MultiplicationValueConverter

[](#multiplicationvalueconverter)

Multiplies the given input value with the multiplicator.

```
$converter = new MultiplicationValueConverter(10);
$converter->convert(3); // 30
```

#### StringReplaceValueConverter

[](#stringreplacevalueconverter)

Replaces the `search` string with the `replace` string in the input string.

```
$converter = new StringReplaceValueConverter('foo', 'baz')
$converter->convert('foobar'); // bazbar
```

#### ChainValueConverter

[](#chainvalueconverter)

Executes multiple value converters. Great for composing chains of value converters and reusing them for multiple fields or in multiple workflows.

```
// Convert a money value (in german format with , instead of .) into cents.
$converter = new ChainValueConverter();
$converter->addValueConverter(new StringReplaceValueConverter(',', '.'))
          ->addValueConverter(new MultiplicationValueConverter(100));
$converter->convert('42,69'); // 4269
```

Author
------

[](#author)

### [Florian Eckerstorfer](https://florian.ec)

[](#florian-eckerstorfer)

- [Twitter](https://twitter.com/Florian_)

License
-------

[](#license)

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a80f9fc61cd3a7d7779e8f120b458ca4d18fdd885d719bb77d3379b96bf714d9?d=identicon)[florianeckerstorfer](/maintainers/florianeckerstorfer)

### Embed Badge

![Health badge](/badges/florianeckerstorfer-data-import-extra/health.svg)

```
[![Health](https://phpackages.com/badges/florianeckerstorfer-data-import-extra/health.svg)](https://phpackages.com/packages/florianeckerstorfer-data-import-extra)
```

###  Alternatives

[typo3/cms-introduction

The Official TYPO3 Introduction Package

1880.6k5](/packages/typo3-cms-introduction)[blackbird/hyva-splide-js

An implementation of SplideJS library in Hyvä Theme for Magento 2

2016.7k](/packages/blackbird-hyva-splide-js)

PHPackages © 2026

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