uams-web / aether-wordpress-importer
WordPress XML export importer for Statamic
Package info
github.com/UAMS-Web/aether-wordpress-importer
pkg:composer/uams-web/aether-wordpress-importer
Requires
- php: ^8.4
- james-heinrich/getid3: ^1.9
- laravel/prompts: ^0.3
- statamic/cms: 6.43.1
- uams-web/aether-wordpress-importer-cleanup: ^2.0
Requires (Dev)
- cweagans/composer-patches: ^2.0
- laravel/pint: ^1.29
- mockery/mockery: ^1.6
- orchestra/testbench: ^11.1
- pestphp/pest: ^5.0
- pestphp/pest-plugin-drift: ^5.0
- pestphp/pest-plugin-phpstan: ^5.0
- phpstan/extension-installer: ^1.4
- phpstan/phpstan: ^2.2
- phpstan/phpstan-strict-rules: ^2.0
- phpunit/phpunit: ^13.0
- rector/rector: ^2.6
- uams-web/patches-pest-plugin-mutate: ^1.4
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-main
- v0.37.0
- v0.36.0
- v0.35.0
- v0.34.0
- v0.33.3
- v0.33.2
- v0.33.1
- v0.33.0
- v0.32.0
- v0.31.2
- v0.31.1
- v0.31.0
- v0.30.0
- v0.29.0
- dev-sync/uams-claude-skills
- dev-616-statamic-cms-6-43-1
- dev-621-run-ensure-patches-applied
- dev-614-remove-cleanup-transform-stub
- dev-618-flat-terms-after-rebuild
- dev-611-cleaner-failure-on-api-path
- dev-612-pin-609-behavior
- dev-605-ci-workflows-v0.17.0
- dev-601-not-set-flat-transformations
- dev-599-value-table-default-fallback
- dev-544-record-value-table-default-decision
- dev-595-publish-wiki
- dev-543-specific-not-set
- dev-89-api-duplicate-disposition
- dev-537-forms-linux-remeasure
- dev-341-windows-jit-segfault
- dev-588-unique-slug-for-slugless-post
- dev-587-posts-audio-template
- dev-552-split-wxr-materializer
- dev-556-split-fieldtype-mapping-trait
- dev-582-decision-log-date-wording
- dev-580-date-decision-log
- dev-537-fieldtype-mapping-trait-survivors
- dev-577-entry-creator-empty-list-mutant
- dev-573-ci-workflows-v0-13
- dev-568-adopt-patches-v1-4
- dev-304-term-site-assertions
- dev-519-weekly-full-mutation
- dev-570-agents-local-scripts
- dev-568-adopt-patches-v1-2
- dev-551-split-gf-form-configuration-manager
- dev-550-split-base-entry-creator
- dev-549-split-text-processor
- dev-547-split-formidable-fieldtype-mapping
- dev-558-split-gravity-fieldtype-mapping
- dev-553-split-kb-entry-creator
- dev-521-shared-mutate-patches-package
- dev-562-kb-search-missing-index
- dev-347-redirect-host-reference
- dev-546-split-import-wordpress
- dev-553-split-mutation-measure
- dev-548-split-link-processor
- dev-546-split-mutation-measure
- dev-96-processor-closeout
- dev-537-forms-mutation-survivors
- dev-96-table-photo-coverage
- dev-537-forms-linux-mutation
- dev-484-pin-development-php
- dev-408-keep-off-site-file-links
- dev-455-resolve-wildcard-target-once
- dev-487-forms-linux-mutation
- dev-371-remove-entrycreator-hasshowpeople
- dev-96-unwrapping-coverage
- dev-458-not-set-translation-once
- dev-515-herd-macos-standalone-tests
- dev-guard-uams-login-check
- dev-510-formidable-address-default-codes
- dev-497-gravity-state-preset-once
- dev-496-formidable-address-subfields
- dev-505-name-anchors-url-forms
- dev-438-decoded-address-labels
- dev-500-split-paragraph-id
- dev-356-mutant-launch-patch
- dev-502-dropped-id-fragment-warning
- dev-374-quote-image-id
- dev-492-nested-images
- dev-429-address-preset-handle
- dev-494-json-error-message
- dev-405-lone-shortcode-libxml
- dev-489-table-photo-captions
- dev-453-value-calculation-docblocks
- dev-396-table-cell-images
- dev-421-max-file-size-unreadable
- dev-99-parser-coverage-evidence
- dev-96-table-boundary-coverage
- dev-96-gallery-boundary-coverage
- dev-96-quote-serialization-coverage
- dev-orb-setup
- dev-96-file-comment-null-coverage
- dev-96-processor-closeout-evidence
- dev-96-shortcode-boundary-coverage
- dev-306-changed-tests-against-base
- dev-96-accordion-list-coverage
- dev-96-processor-coverage-inventory
- dev-96-image-helper-coverage
- dev-96-shortcode-block-coverage
- dev-96-post-audio-coverage
- dev-96-processors-coverage-remainder
- dev-260-mutate-ignore-breadth
- dev-325-guard-stache-clears
- dev-448-remove-set-attributes-specific
- dev-415-call-reusable-ci
- dev-98-forms-coverage-next26
- dev-98-forms-coverage-next25
- dev-98-forms-coverage-next24
- dev-98-forms-coverage-next23
- dev-98-forms-coverage-next22
- dev-98-forms-coverage-next21
- dev-98-forms-coverage-next20
- dev-98-forms-coverage-next19
- dev-98-forms-coverage-next18
- dev-98-forms-coverage-next17
- dev-445-record-set-attributes-decision
- dev-98-forms-coverage-next16
- dev-98-forms-coverage-next15
- dev-98-forms-coverage-next14
- dev-98-forms-coverage-next13
- dev-98-forms-coverage-next12
- dev-98-forms-coverage-next11
- dev-98-forms-coverage-next10
- dev-98-forms-coverage-next9
- dev-98-forms-coverage-next8
- dev-98-forms-coverage-next7
- dev-98-forms-coverage-next6
- dev-98-forms-coverage-next5
- dev-98-forms-coverage-next4
- dev-98-forms-coverage-next3
- dev-98-forms-coverage-next2
- dev-98-forms-coverage-placeholders
- dev-395-table-cell-links
- dev-98-forms-coverage-converters
- dev-98-forms-coverage-next
- dev-98-forms-coverage-string-helpers
- dev-98-forms-coverage-index-array
- dev-98-forms-coverage-key-translation
- dev-98-forms-coverage-combine-value
- dev-111-search-index-per-worker
- dev-98-forms-coverage-complex-array
- dev-394-table-in-list-details
- dev-98-forms-coverage-formidable-mapping
- dev-378-tooling-updates
- dev-98-forms-coverage-helpers
- dev-98-forms-coverage-subfield-warning
- dev-98-forms-coverage-rest
- dev-329-reusable-block-test-package-path
- dev-352-cached-file-different-site-policy
- dev-404-normalize-verification-workspace-root
- dev-464-importer-instrument-scope
- dev-146-wpautop-parity
- dev-128-statamic-pin-docs
- dev-145-wpautop-bare-block-tag
- dev-327-plain-html-tables
- dev-239-reusable-block-blueprint-b
- dev-366-textless-markup
- dev-306-changed-tests-report
- dev-127-entry-finder
- dev-389-nested-block-attributes
- dev-123-block-processor-helper
- dev-387-assign-author-test
- dev-135-formidable
- dev-138-focal-point
- dev-148-field-mapper
- dev-358-block-overwrite-behavior
- dev-376-split-pest-job
- dev-245-skipped-block-registry
- dev-274-classic-after-nested-block
- dev-329-aether-rename
- dev-149-texstyle-list-quote-image-ids
- dev-286-tablepress-hyphen-id
- dev-285-people-groups-gate
- dev-281-kbtopic-parent-cycle
- dev-193-additional-term-slug
- dev-194-audio-series-existing-term
- dev-353-portrait-warning-site
- dev-335-content-beside-shortcode
- dev-267-tablepress-excerpt-json
- dev-262-break-to-continue-switch
- dev-96-processors-coverage-6
- dev-96-processors-coverage-5
- dev-96-processors-coverage-4
- dev-96-processors-coverage-2
- dev-96-processors-coverage-3
- dev-340-entry-copy-slug
- dev-107-windows-mutate-patches
- dev-232-same-site-skip
- dev-330-caption-bare-image-autop
- dev-319-assign-author-timeout
- dev-204-claim-concurrency-exit3
- dev-175-mock-notices
- dev-176-deferred-links-test-hardening
- dev-288-tablepress-excerpt-paragraph
- dev-265-tablepress-additional-slug
- dev-254-verification-mode
- dev-228-import-more-prompt
- dev-259-audio-series-file-cache
- dev-253-duplicate-file-delete-failure
- dev-180-lone-shortcode-block
- dev-229-search-index-rebuild
- dev-177-caption-text-quotes
- dev-178-accordion-empty-paragraphs
- dev-186-ci-windows-leg
- dev-167-convert-untitled-accordion-sections
- dev-321-attribute-pattern-backtracking
- dev-164-keep-imageless-caption-text
- dev-trial-406-mutate-job
- dev-120-report-unknown-shortcodes
- dev-258-agents-md-under-limit
- dev-201-paired-acf-block-in-group
- dev-160-find-post-xpath-literals
- dev-170-digit-entry-id-deferred-links
- dev-309-entity-quoted-url-end
- dev-257-people-empty-bio
- dev-269-decode-attachment-url-entities
- dev-101-compile-check-and-set-cache
- dev-101-base-entry-creator-terms
- dev-251-orphan-descendants-in-tree
- dev-277-restart-option-label
- dev-292-clear-collection-entries-store
- dev-291-missing-destination-exit
- dev-289-unreadable-export-error
- dev-102-remaining-coverage-27
- dev-101-base-entry-creator-coverage
- dev-102-remaining-coverage-26
- dev-101-entry-creator-coverage
- dev-101-kb-entry-creator-coverage
- dev-102-remaining-coverage-25
- dev-102-remaining-coverage-24
- dev-102-remaining-coverage-23
- dev-102-memory-limit-seam
- dev-102-remaining-coverage-22
- dev-102-remaining-coverage-21
- dev-102-remaining-coverage-20
- dev-102-remaining-coverage-19
- dev-102-remaining-coverage-18
- dev-101-page-entry-creator-coverage
- dev-102-remaining-coverage-17
- dev-102-remaining-coverage-16
- dev-101-tablepress-entry-creator-coverage
- dev-102-remaining-coverage-14
- dev-101-logo-list-item-entry-creator-coverage
- dev-101-people-entry-creator-coverage
- dev-102-remaining-coverage-15
- dev-101-post-entry-creator-coverage
- dev-102-remaining-coverage-13
- dev-102-remaining-coverage-12
- dev-102-remaining-coverage-11
- dev-102-remaining-coverage-10
- dev-101-advert-entry-creator-coverage
- dev-102-remaining-coverage-9
- dev-102-remaining-coverage-8
- dev-102-remaining-coverage-7
- dev-102-remaining-coverage-6
- dev-102-remaining-coverage-5
- dev-102-remaining-coverage-4
- dev-102-remaining-coverage-3
- dev-102-remaining-coverage-2
- dev-102-remaining-coverage-1
- dev-3384-repoint-uams-statamic-archive
- dev-101-asset-downloader-coverage
- dev-141-alt-override-handle
- dev-101-asset-importer-coverage
- dev-101-asset-utils-coverage
- dev-101-assets-coverage
- dev-100-prompts-coverage-close
- dev-101-entries-assets-tiptap-coverage
- dev-100-prompts-coverage-10
- dev-100-prompts-coverage-9
- dev-100-prompts-coverage-8
- dev-100-prompts-coverage-7
- dev-150-link-target-blank
- dev-213-remove-destination-selector
- dev-100-prompts-coverage-5
- dev-100-prompts-coverage-4
- dev-100-prompts-coverage-3
- dev-100-prompts-coverage-2
- dev-100-prompts-coverage
- dev-204-worktree-slots-concurrency
- dev-199-side-by-side-block-module-rules
- dev-197-table-block-extent
- dev-157-attribute-escaped-quotes
- dev-156-shortcode-block-content-twice
- dev-155-shortcode-block-offsets
- dev-154-wpautop-numeric-entities
- dev-99-parsers-coverage-8
- dev-153-figure-block-attributes
- dev-99-parsers-coverage-7
- dev-99-parsers-coverage-5
- dev-152-skipcount-next-node
- dev-99-parsers-coverage-6
- dev-171-vanity-domain-wording
- dev-188-flat-term-reimport
- dev-97-utilities-coverage-16
- dev-99-parsers-coverage-4
- dev-182-progress-followups
- dev-108-redirect-source-collisions
- dev-99-parsers-coverage-3
- dev-119-page-builder-caption-content
- dev-163-required-checks
- dev-103-import-progress
- dev-118-bare-shortcode-name
- dev-106-ninja-forms-set-coordinator
- dev-113-repatch-on-refresh
- dev-97-utilities-coverage-15
- dev-109-scoped-reads-per-type
- dev-97-utilities-coverage-14
- dev-97-utilities-coverage-13
- dev-97-utilities-coverage-12
- dev-97-utilities-coverage-11
- dev-97-utilities-coverage-10
- dev-97-utilities-coverage-9
- dev-97-utilities-coverage-8
- dev-97-utilities-coverage-7
- dev-97-utilities-coverage-6
- dev-130-term-parent-same-taxonomy
- dev-96-processors-coverage
- dev-97-utilities-coverage-5
- dev-99-parsers-coverage-2
- dev-98-forms-coverage-8
- dev-133-sitemanager-test-eol
- dev-98-forms-coverage-7
- dev-97-utilities-coverage-4
- dev-97-utilities-coverage-3
- dev-98-forms-coverage-6
- dev-97-utilities-coverage-2
- dev-98-forms-coverage-5
- dev-98-forms-coverage-4
- dev-114-forms-test-line-endings
- dev-98-forms-coverage-3
- dev-99-parsers-coverage
- dev-97-utilities-coverage
- dev-98-forms-coverage-2
- dev-98-forms-coverage
- dev-1-relock-wxr-cleanup-v1-1-0
This package is auto-updated.
Last update: 2026-11-26 15:28:14 UTC
README
Import WordPress XML exports into Statamic with an interactive Artisan command.
This addon is designed for real migration work: it parses WordPress exports, lets you choose what to import, maps content into Statamic collections/globals/navigation, imports related assets, and helps you catch problematic content patterns before import.
Documentation
- The wiki: your first import, importing from the migration API, previewing an import with
--verify, navigation menus and MinervaKB, the command reference, content types and destinations, and troubleshooting. Its pages are kept indocs/wiki/and published from there. - This file: requirements, installation, a quick start, development, the declared public surface and releasing.
- Technical reference: the full command workflow (scans, completion), class catalog, configuration and environment flags, mixed content, the modules template, and other internals.
- Migration API contract: endpoints, pagination, query semantics and the places a request succeeds while returning less than you asked for.
- Migration API secret runbook: generating, placing, verifying, rotating and removing the credential the
--source=apiimport needs.
Requirements
- PHP
^8.4 - Statamic
statamic/cmspinned exactly to the version incomposer.json, not a caret range. The exact pin makes this package resolve the same Statamic build the host app runs, which keeps both on oneueberdosis/tiptap-php; moving it is a coupled change made here first and then in the host. SeeCLAUDE.md.
Installation
Install with Composer:
composer require uams-web/aether-wordpress-importer
The addon service provider is auto-discovered by Laravel/Statamic.
Moving from uams-web/wordpress-importer: the package and its namespace were renamed, and the old package is abandoned. A consumer changes three things:
- Require
uams-web/aether-wordpress-importerin place ofuams-web/wordpress-importer. GitHub redirects the old repository URL; Composer does not redirect the old package name. - Replace
UAMSWeb\WordPressImporter\withUAMSWeb\Aether\WordPressImporter\in any import of a class from this package. - Replace
vendor/uams-web/wordpress-importer/withvendor/uams-web/aether-wordpress-importer/in any path, such as a host-app test command.
The artisan command, its options and the environment variables keep their names. The package has no configuration file, publish tag or published asset to rename.
Code layout: this repository’s PHP lives under src/ (Composer package uams-web/aether-wordpress-importer). The import command class is UAMSWeb\Aether\WordPressImporter\Console\Commands\ImportWordPress, registered by UAMSWeb\Aether\WordPressImporter\ServiceProvider.
Quick start
Import from a WordPress XML (WXR) export file, and answer the prompts:
php artisan statamic:import:wordpress /path/to/export.xml
Reading a site directly through the migration API (--source=api) needs a credential issued on the WordPress side first: see Importing from the migration API. Every option is on the command reference, and what each content type imports and where it lands is on Content types and destinations.
Development
Run tests with:
./vendor/bin/phpunit
Test fixtures (the export corpus)
The WXR and forms fixtures are WordPress exports of UAMS sites, so they are private. They live only in the private repository UAMS-Web/wordpress-importer-exports, which only accounts granted access to it can fetch. This repository does not carry them (#1426). With access, clone the corpus anywhere and name the clone in WORDPRESS_IMPORTER_EXPORTS:
git clone --depth 1 https://github.com/UAMS-Web/wordpress-importer-exports.git ../wordpress-importer-exports
WORDPRESS_IMPORTER_EXPORTS=../wordpress-importer-exports composer test
Without the corpus, everything in the gate still runs. ci.yml and node scripts/ci-local.mjs run only --testsuite=Unit,Integration, and every job passes without the fixtures. The two standalone tests that read the corpus, TaxonomyDestinationTest and AdvertCorpusImportTest, skip when the variable is unset, naming it in the skip message. A variable that is set but names no directory fails those tests instead, so a mistyped path cannot pass as a skip. The host-app-bound tests/Feature audits read the corpus through the host app's own settings (FRM_AUDIT_FIXTURES_DIR, GF_AUDIT_FIXTURES_DIR in uams-statamic), not through this package.
Keep the clone current. Nothing pins it, so a clone left alone audits content that no longer resembles production; the corpus once went seven weeks and seven commits stale before anyone noticed (#474). Pull it before an audit run: git -C ../wordpress-importer-exports pull --ff-only.
A tree that had the old submodule initialized keeps the clone at src/Services/WordPressImport/Tests/Exports after updating; .gitignore covers that path. It can be deleted, or used as the value of WORDPRESS_IMPORTER_EXPORTS.
Public surface
This package declares the surface below. It is the surface a release decision is judged against — a change that removes, renames, or alters the contract of anything here is breaking, and nothing else is, however public it happens to be. The cutting-releases rule applies that test; this section is what it reads.
The declaration is deliberately local. Measuring what uams-statamic consumes is the more accurate question and it makes a release decision depend on reading another repository — so the table is seeded from that measurement and then maintained here.
| Channel | Declared |
|---|---|
| Console command | statamic:import:wordpress, and the eight options documented on the wiki's Command reference: --source, --site, --modified-after, --network, --key-from-stdin, --unsupported-content, --content-type, --minerva-generation |
| Service provider | UAMSWeb\Aether\WordPressImporter\ServiceProvider, auto-discovered through extra.laravel.providers; the ImportWordPress command binding it performs; and the protect.entry middleware alias it registers |
| Classes | the 22 below |
Classes are listed relative to UAMSWeb\Aether\WordPressImporter\Services\WordPressImport\. Consumed by records where the app reached for it when the table was last seeded — runtime in the app's own code, tests in the app's own test suite. Both count: removing either breaks the consumer.
| Class | Consumed by |
|---|---|
Assets\AssetImporter |
tests |
Entries\Creators\KbEntryCreator |
tests |
Entries\EntryCreator |
tests |
Globals\Creators\RedirectRuleGlobalCreator |
tests |
Parsers\XmlParser |
tests |
Prompts\MinervaKbSettings\Extractor |
tests |
Prompts\MinervaKbSettings\Loader |
tests |
Prompts\MinervaKbSettings\Prompter |
tests |
Prompts\MinervaKbSettings\Selector |
tests |
Prompts\MinervaKbSettings\Validator |
tests |
Structures\TreeBuilder |
tests |
Tiptap\SetMarkupNonce |
tests |
Utilities\BardParser |
tests |
Utilities\CollectionStructureManager |
tests |
Utilities\ContentProcessor |
tests |
Utilities\FieldDefaultHelper |
runtime |
Utilities\MetadataMapper |
tests |
Utilities\PasswordVerifier |
runtime |
Utilities\SearchIndexUpdates |
tests |
Utilities\SiteManager |
tests |
Utilities\TextProcessor |
tests |
Utilities\XpathHelper |
tests |
Re-measure when the app's pin moves. The declaration is a local claim about a cross-repo fact, which is exactly what makes it cheap and exactly how it drifts. Seeded on 2026-09-21 against uams-statamic at 2ba68850a, pinning ^0.20.
Releasing
Releases are retrospective semver tags on main — a changelog checkpoint, not a deploy gate. Cut a tag whenever a batch of vetted changes has landed, and always before uams-statamic consumes them: the app pins this package by a tagged caret range ("uams-web/aether-wordpress-importer": "^0.20" as of 2026-09-21), not dev-main, so a tag has to exist for the new work to be requirable. A tag survives a force-push to main; a raw dev-main branch commit does not (the failure behind UAMS-Web/uams-statamic#904 / #905).
Versioning — stay in 0.x until the eventual 1.0.0 (Launch); every tag before then is a pre-release.
0.x.0(minor) — a feature or structural milestone.0.x.y(patch) — refinement only.
Cutting a release:
# changes are merged to main; tag the tip you want to release git checkout main && git pull git tag -a v0.6.0 -m 'v0.6.0 — <Theme>' git push origin v0.6.0 # publish the GitHub release (pre-release until 1.0) gh release create v0.6.0 --title 'v0.6.0 — <Theme>' --notes-file notes.md --prerelease --verify-tag
Release-note style — title vX.Y.Z — <Theme> (em dash), a one-sentence milestone lead, then a closed, ordered set of ## buckets: Breaking changes, What's new, What's fixed, Security, Maintenance and tooling. One linked bullet per change ([#N] for a PR, a backticked short SHA for a direct commit); no by @author; write "and", never &; use the Oxford comma. The full style guide and a body generator (gen_release_notes.py) live in the consumer repo UAMS-Web/uams-statamic under .claude/skills/writing-release-notes/.
After tagging, bump the constraint in uams-statamic (edit composer.json, then composer update uams-web/aether-wordpress-importer) when the app should adopt the new release — normally through its recurring dependency-update pass.
Support
- Issues: GitHub Issues
- Source: GitHub Repository
License
Released under the MIT License. Copyright (c) 2026 University of Arkansas for Medical Sciences.