iq2i / data-importer
A PHP library to easily manage and import large data file
Installs: 13 660
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 5
Forks: 3
Open Issues: 1
Requires
- php: >=8.1
- ext-simplexml: *
- halaxa/json-machine: ^1.1
- nette/php-generator: ^4.0
- symfony/console: ^6.1|^7.0
- symfony/dependency-injection: ^7.0
- symfony/filesystem: ^6.1|^7.0
- symfony/http-kernel: ^6.1|^7.0
- symfony/messenger: ^6.1|^7.0
- symfony/property-access: ^7.0
- symfony/serializer: ^6.1|^7.0
- symfony/string: ^6.1|^7.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.13
- mikey179/vfsstream: ^1.6
- phpstan/phpstan: ^1.9
- phpunit/phpunit: ^10.0
- rector/rector: ^0.15
README
A PHP library to easily manage and import large data file.
Installation
composer require iq2i/data-importer
Choose the version you need
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.