PHPackages                             contentreactor/craft-importer - 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. contentreactor/craft-importer

ActiveCraft-plugin[Utility &amp; Helpers](/categories/utility)

contentreactor/craft-importer
=============================

Data importer for Craft CMS

2.0.0(2mo ago)01.1k2mitPHP

Since Aug 27Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/contentreactor/craft-importer)[ Packagist](https://packagist.org/packages/contentreactor/craft-importer)[ RSS](/packages/contentreactor-craft-importer/feed)WikiDiscussions craft-5 Synced 1mo ago

READMEChangelogDependencies (22)Versions (4)Used By (0)

Craft File Importer
===================

[](#craft-file-importer)

Installation
------------

[](#installation)

```
# go to the project directory
cd /path/to/my/project

# tell Composer to load the plugin
composer require contentreactor/craft-importer

# tell Craft to install the required plugin
./craft plugin/install craft-importer
```

### DDEV Installation

[](#ddev-installation)

If you're using [DDEV](https://ddev.com) for your local development, you can install the plugin like so:

```
cd /path/to/my/project

ddev composer require contentreactor/craft-importer

ddev craft plugin/install craft-importer
```

Configuration
-------------

[](#configuration)

The Importer uses a `jsonField` setting to indicate where the content is being stored. Individual importers can also define their own fields. Add configurations to the `importers` callback of the craft-importer config file `config/craft-importer.php`. Here's an example:

```
new \ContentReactor\Importer\Importers\BaseFileImporter(
	section: 'yourSectionHandle',
	importerType: \ContentReactor\Importer\Base\ImporterType::IMPORTER_TYPE_FILE,
	foundStrategy: \ContentReactor\Importer\Base\FoundStrategy::OVERWRITE,
	notFoundStrategy: \ContentReactor\Importer\Base\NotFoundStrategy::DELETE,
	filePath: '/full/system/path/to/your/file.xml', //
