PHP code example of matdave / mediumimport
1. Go to this page and download the library: Download matdave/mediumimport library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
matdave / mediumimport example snippets
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
);