matdave/mediumimport

Import Medium Blog into MODX

0.0.2 2025-08-05 22:25 UTC

This package is auto-updated.

Last update: 2025-08-06 20:47:07 UTC


README

This is a simple helper library to import posts from a Medium blog export.

Usage

Install via composer:

composer require matdave/mediumimport

Create an import script

<?php

require_once __DIR__ . '/vendor/autoload.php';

$mi = new \MatDave\MediumImport\Import("/path/to/core/", "config_key");
$mi->import(
    "/path/to/export/", // path to the unzipped export
    2, // ID of the template to use
    3 // ID of the parent to use
);