Skip to content

A PHP library to easily manage and import large data file

License

Notifications You must be signed in to change notification settings

IQ2i/data-importer

Repository files navigation

iq2i/data-importer

Scrutinizer Quality Score Code Coverage Build Status License Latest Stable Version

A PHP library to easily manage and import large data file.

Installation

composer require iq2i/data-importer
Choose the version you need
Version (X.Y.Z) PHP Comment
4.*.* >= 8.1.0 Current version
3.2.* >= 7.4.0 Previous version

Usage

DataImporter is based on 3 components:

  • Reader: how to read your files
  • Processor: what to do with your data
  • Archiver: where to store processed files (optional)

Once the required parts are initialized, you can create a DataImporter and use it:

<?php

use IQ2i\DataImporter\DataImporter;

$dataImporter = new DataImporter(
    $csvReader,
    $articleProcessor,
    // optional archiver here
);
$dataImporter->execute();

Framework integration

Additionally, this package provides deeper integration into Symfony:

Issues and feature requests

Please report issues and request features at https://github.com/iq2i/data-importer/issues.

License

This bundle is under the MIT license. For the whole copyright, see the LICENSE file distributed with this source code.