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

This branch is up to date with 4.x.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e936af3 · Nov 23, 2024
Nov 23, 2024
Nov 23, 2024
Oct 18, 2023
Nov 23, 2024
Nov 23, 2024
Apr 16, 2023
Jun 10, 2022
Apr 11, 2023
Oct 17, 2023
Apr 4, 2024
Oct 16, 2020
Apr 4, 2024
Apr 4, 2024
Nov 23, 2024
Jan 14, 2024
Sep 28, 2022
Jun 10, 2022
Apr 11, 2023
Oct 17, 2023

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.