Giter Club home page Giter Club logo

data-importer's Introduction

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.

data-importer's People

Contributors

alexandrepetrone avatar loicsapone avatar sybers avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

data-importer's Issues

Batch size not used

The method BatchProcessorInterface::getBatchSize() is never used, and the BatchProcessorInterface::batch() is called only once, at the end of the process.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.