PHPackages                             vinorcola/import-bundle - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. vinorcola/import-bundle

ActiveSymfony-bundle[File &amp; Storage](/categories/file-storage)

vinorcola/import-bundle
=======================

Bundle providing tools for importing and mapping a file.

v2.0.2(2y ago)022MITPHPPHP ^7.1 | ^8.0CI failing

Since Oct 7Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Vinorcola/ImportBundle)[ Packagist](https://packagist.org/packages/vinorcola/import-bundle)[ RSS](/packages/vinorcola-import-bundle/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (10)Versions (5)Used By (0)

Import bundle
=============

[](#import-bundle)

A bundle to import data from CSV or Excel files, letting the user map the columns of its file to the required fields for your process.

Configuration
-------------

[](#configuration)

Setup a temporary directory in which the uploaded files will be stored temporarily.

Setup as many imports as you want by configuring:

- the route prefix (several routes are generated for each import process)
- the mapping (the required columns for your process)
- The process service (which must implement `Vinorcola\ImportBundle\Model\ImportConsumerInterface`).

```
# config/packages/vinorcola_import.yaml

vinorcola_import:
    temporaryDirectory: "%kernel.project_dir%/document-storage/tmp"
    imports:
        company_import:
            route_prefix:
                name: import.company.
                url: /company/import
            mapping: [ nationalIdentifier, companyName, address, city ]
            service: App\Model\CompanyImportHandler
        contact_import:
            route_prefix:
                name: import.contact.
                url: /contact/import
            mapping: [ firstName, lastName, emailAddress, phoneNumber ]
            service: App\Model\ContactImportHanlder
```

```
# config/routes/vinorcola_import.yaml

import_routes:
    resource: '@VinorcolaImportBundle/Controller/'
    type: vinorcola_import
```

Then, the `consume` method of your process service will be called for line of data in the user's file, providing an array with the mapped columns and the line index:

```
public function consume(array $values, int $lineIndex): void;
```

For example, in the `App\Model\CompanyImportHandler`, the `consume` method will be called with a `$values` array containing the following keys:

- `nationalIdentifier`
- `companyName`
- `address`
- `city`

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity70

Established project with proven stability

 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 ~653 days

Total

4

Last Release

860d ago

Major Versions

v1.0.0 → v2.0.02020-02-15

PHP version history (2 changes)v1.0.0PHP ^7.1

v2.0.2PHP ^7.1 | ^8.0

### Community

Maintainers

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

---

Top Contributors

[![Vinorcola](https://avatars.githubusercontent.com/u/2178680?v=4)](https://github.com/Vinorcola "Vinorcola (13 commits)")

### Embed Badge

![Health badge](/badges/vinorcola-import-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/vinorcola-import-bundle/health.svg)](https://phpackages.com/packages/vinorcola-import-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M378](/packages/easycorp-easyadmin-bundle)[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k246.0M11.1k](/packages/symfony-framework-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M196](/packages/sulu-sulu)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9317.2k55](/packages/open-dxp-opendxp)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1615.6k12](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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