Download the PHP package fastbolt/entity-importer without Composer
On this page you can find all versions of the php package fastbolt/entity-importer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fastbolt/entity-importer
More information about fastbolt/entity-importer
Files in fastbolt/entity-importer
Package entity-importer
Short Description A library for importing CSV files to doctrine entities
License MIT
Homepage https://github.com/fastbolt/entity-importer
Informations about the package entity-importer
Entity importing library
This library aims to provide an easy way to import files into doctrine entities.
Prerequisites
For now, the bundle is tested using PHP 7.4, 8.0 and 8.1.
Internally, we rely on PortPHP and Doctrine
Installation
The library can be installed via composer:
Configuration
If not configured automatically, the bundle needs to be enabled in your project's bundles.php
file:
Implementation
The only necessary code for new importers is the Fastbolt\EntityImporter\EntityImporterDefinition
implementation. We recommend
extending the abstract Fastbolt\EntityImporter\AbstractEntityImporterDefinition
class.
Currently, two import sources are available: Csv and Xlsx.
Usage
After implementing the above interface, the console command entity_importer:import
will automatically recognize the new implementation.
When executing the command without any arguments, it will display all available implementations:
Implementation example:
All versions of entity-importer with dependencies
ext-zlib Version *
doctrine/persistence Version ^2.4|^3.0
guzzlehttp/guzzle Version ^7.5
portphp/csv Version ^2.0
symfony/config Version ^6.0
symfony/filesystem Version ^6.0
symfony/framework-bundle Version ^6.0
symfony/string Version ^6.0
webmozart/assert Version ^1.11
phpoffice/phpspreadsheet Version ^2.1