sightpress / plugin-file-importer
The official SightPress plugin for importing content.
Package info
github.com/sightpress/sightpress-plugin-file-importer
Type:sightpress-plugin
pkg:composer/sightpress/plugin-file-importer
Requires
- php: ^8.4
- sightpress/plugin-core: ^1.0
Requires (Dev)
- deptrac/deptrac: ^4.0
- friendsofphp/php-cs-fixer: ^3.64
- phpstan/extension-installer: ^1.4
- phpstan/phpstan: ^2.1
- phpstan/phpstan-phpunit: ^2.0
- phpunit/phpunit: ^13.0
- rector/rector: ^2.0
- sightpress/core: ^1.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-06 09:41:41 UTC
README
sightpress/plugin-file-importer: the official SightPress plugin for importing
content from other systems. Licensed GPL-2.0-or-later.
Status: M0 scaffolding in place (manifest, bundle, quality gates, CI); features arrive in milestone M8.
It adds importers for:
- Markdown with front matter, mapped onto core pages (or another content type a site has enabled), with media, internal links and widgets converted to SightPress's reference-based Markdown.
- DOCX documents, converted through
pandocinto canonical Markdown.
Every import runs as a background job, reports its progress in words, and leaves content as a draft for a human to review, describe and publish through the normal workflow — nothing is published automatically. Archives and uploaded files are checked for path traversal (zip-slip) and processed with timeouts.
Development
composer install vendor/bin/phpunit # on PluginTestCase, enabled and disabled vendor/bin/phpstan analyse npx playwright test # every manifest route, with axe-core
Check out sightpress/core as a sibling and require it with
COMPOSER=composer.dev.json composer install to run the test kernel.