项目作者: IQ2i

项目描述 :
A PHP library to easily manage and import large data file
高级语言: PHP
项目地址: git://github.com/IQ2i/data-importer.git
创建时间: 2020-04-10T15:43:50Z
项目社区:https://github.com/IQ2i/data-importer

开源协议:MIT License

下载


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

  1. 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:

  1. <?php
  2. use IQ2i\DataImporter\DataImporter;
  3. $dataImporter = new DataImporter(
  4. $csvReader,
  5. $articleProcessor,
  6. // optional archiver here
  7. );
  8. $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.