Download the PHP package humanmade/hm-content-import without Composer
On this page you can find all versions of the php package humanmade/hm-content-import. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download humanmade/hm-content-import
More information about humanmade/hm-content-import
Files in humanmade/hm-content-import
Package hm-content-import
Short Description Migration framework for WordPress
License GPL-2.0-or-later
Informations about the package hm-content-import
HM Content Import
Migration framework for WordPress, attempts to reduce overhead in migrating content from differing data sources
Introduction
HMCI is an extensible, performant, scriptable, pausable, resumable, and horizontally scalable WP-CLI framework for importing large amounts of content into WordPress. It is a base framework for performing custom migrations of large amounts of content from any source and therefore requires the development of an import handler for each type of content being imported.
It typically supports both new imports and delta imports, although this is dependent on the individual import handlers written for each migration.
HMCI can be run in multiple threads in parallel, making it horizontally scalable in order to reduce the time required to process large imports. It has been used as the basis of large data migrations for Human Made clients such as The Sun, L'Express, Capgemini, and others.
Ingestion
HMCI supports ingestion of data via iterators that support:
- Single files
- CSV
- JSON
- Directories of files
- JSON
- XML
- A direct MySQL database connection
- WordPress Posts (for internal migration)
Insertion
HMCI supports inserting imported data into:
- WordPress
- Attachments
- Comments
- Guest Authors (used by Co-Authors Plus and PublishPress)
- Posts
- Taxonomy Terms
- Users
- Files
- CSV
Importing
See the Running Imports for more information on how to import data.
Writing Importers
See the Writing Importers for more information on how to write importers.
Migrating From Version 1
In Version 2 we changed the way canonical IDs are stored. This means that you will need to migrate your existing data to the new format, if you are planning to resume / to delta imports with data that was imported under Version 1.
Run the following SQL query to migrate your existing data:
Should you need to revert this migration, you can run the following SQL query: