This module contains a source plugin for migrations that utilizes the laminas-feed library to import feed content. The module contains no front-end functionality or admin settings.

This plugin was created as part of an experiment to build an upgraded Aggregator module that utilizes migrations for importing, parsing, and storing feed content. Feed aggregation is simply an ETL (extract, transform, load) process after all. So why not use Migrate, the king of ETL modules that comes packaged in Drupal Core? That experiment may never see the light of day, but the plugin that was created for it might be useful to someone. So it's saved here in case anyone has a similar need.

The source plugin accepts a feed url as an argument. It then hands all of the work of importing and parsing the feed off to the laminas-feed library. The returned data is then inserted into migration rows. You could use the XML source plugin from Migrate Plus to do the same thing, but you would be responsible for doing a lot of manual configuration to parse the content. This laminas_feed plugin does that work for you.

Project information

Releases