craftcms/feed-me

Import content from XML, RSS, CSV or JSON feeds into entries, categories, Craft Commerce products, and more.

Installs: 797 524

Dependents: 16

Suggesters: 0

Security: 0

Stars: 289

Watchers: 15

Forks: 139

Open Issues: 130

Type:craft-plugin

6.5.0 2024-10-15 22:56 UTC

This package is auto-updated.

Last update: 2024-11-20 18:54:27 UTC


README

Feed Me icon

Feed Me for Craft CMS

Feed Me is a Craft plugin for super-simple importing of content, either once-off or at regular intervals. With support for XML, RSS, ATOM, CSV or JSON feeds, you'll be able to import your content as Entries, Categories, Craft Commerce Products (and variants), and more.

Requirements

This plugin requires Craft CMS 5.0.0-beta.2 or later.

Installation

You can install this plugin from the Plugin Store or with Composer.

From the Plugin Store

Go to the Plugin Store in your project’s Control Panel and search for “Feed Me”. Then click on the “Install” button in its modal window.

With Composer

Open your terminal and run the following commands:

# go to the project directory
cd /path/to/my-project.test

# tell Composer to load the plugin
composer require craftcms/feed-me

# tell Craft to install the plugin
./craft plugin/install feed-me

Customizing Logs

As of version 5.6/6.2, logging is handled by Craft's log component and stored in the database instead of the filesystem. To log to files (or anywhere else) instead, you can disable the default logging add your own log target:

config/feed-me.php

<?php
return [
    // disable default logging to database
    'logging' => false,
];

config/app.php

<?php
return [
    'components' => [
        'log' => [
            'monologTargetConfig' => [
                // optionally, omit from Craft's default logs
                'except' => ['feed-me'],
            ],
            
            // add your own log target to write logs to file
            'targets' => [
                [
                    // log to file or STDOUT/STDERR if CRAFT_STREAM_LOG=1 is set
                    'class' => \craft\log\MonologTarget::class,
                    'name' => 'feed-me',
                    'categories' => ['feed-me'],
                    
                    // Don't log request and env vars
                    'logContext' => false,
                    
                    // Minimum level to log
                    'level' => \Psr\Log\LogLevel::INFO,
                ],
            ],
        ],
    ],
];

Resources