PHPackages                             swisscom/referencedataimport - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. swisscom/referencedataimport

ActiveNeos-package[Utility &amp; Helpers](/categories/utility)

swisscom/referencedataimport
============================

Reference data importer based on Swisscom.AliceConnector

0.5.0(11mo ago)0683MITPHP

Since Jan 4Pushed 11mo ago2 watchersCompare

[ Source](https://github.com/onivaevents/Swisscom.ReferenceDataImport)[ Packagist](https://packagist.org/packages/swisscom/referencedataimport)[ RSS](/packages/swisscom-referencedataimport/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (7)Used By (0)

Alice based reference data import
=================================

[](#alice-based-reference-data-import)

Neos Flow package to import reference data into your project based on [Swisscom.AliceConnector](https://github.com/onivaevents/Swisscom.AliceConnector).

This allows to define the reference data in YAML, JSON or PHP files. YAML example:

```
Your\Package\Domain\Model\Vat:
  vat_normal:
    name: 'Normal'
    rate: '7.7'
  vat_special:
    name: 'Special'
    rate: '3.7'
  vat_reduced:
    name: 'Reduced'
    rate: '3.5'
```

See the readme in [Swisscom.AliceConnector](https://github.com/onivaevents/Swisscom.AliceConnector) or [Alice](https://github.com/nelmio/alice) for further documentation.

Getting started
---------------

[](#getting-started)

Install the package through composer.

```
composer require swisscom/referencedataimport

```

### Configuration

[](#configuration)

Set the path to your reference data files in the `Settings.yaml`. The path is specified as a fixture set with the `referenceData` key as part of the `Swisscom.AliceConnector` package.

```
Swisscom:
  AliceConnector:
    fixtureSets:
      referenceData: '%FLOW_PATH_PACKAGES%Application/Your.Package/Resources/Private/ReferenceData/{name}.yaml''
```

### Annotations

[](#annotations)

Annotate the data model classes that should get imported with `Swisscom\ReferenceDataImport\Annotation\Entity`. If the property should get updated on further executions, annotate it with `Updatable`.

```
