iq2i/data-importer

A PHP library to easily manage and import large data file

4.2.0 2024-04-04 18:30 UTC

This package is auto-updated.

Last update: 2024-04-18 10:27:49 UTC


README

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.