networkteam / import
Generic import framework
Installs: 2 023
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 9
Forks: 2
Open Issues: 2
Requires
- php: ^7.2|^8.0
- psr/log: ^1.0|^2.0|^3.0
- symfony/expression-language: >=2.4|~3.0|~4.0|~5.0
Requires (Dev)
- ext-pdo: *
- doctrine/orm: >=2.4.0
- mockery/mockery: ^1.0
- phpoffice/phpspreadsheet: ^1.22.0
- phpunit/phpunit: ~8.5.2
Suggests
- phpoffice/phpspreadsheet: Used by the ExcelDataProvider to import Excel files
This package is auto-updated.
Last update: 2024-11-06 13:23:17 UTC
README
Imports are based on data providers that generate or transform data. A data provider is basically an iterator returning
array values for each row in the data set. By composing data providers and transformers, more complex scenarios can be
implemented. This package provides a TransformingProviderDecorator
that has a configurable mapping and allows to use
the Symfony expression language for custom processing (e.g. renaming or combining fields).
The abstract EntityImporter
is a base class for imports using Doctrine ORM.
Installation
composer require networkteam/import
Usage
Extend AbstractImporter
and implement processImportData
with your custom import logic. For Doctrine ORM entities the
EntityImporter
can be extended.
For further examples and how to handle different tasks look into the documentation
License
This package is released under the MIT license.