cpsit / t3import_export
General import and export tool for the TYPO3 CMS
Package info
github.com/dwenzel/t3import_export
Type:typo3-cms-extension
pkg:composer/cpsit/t3import_export
Requires
- php: >=8.3
- ext-xmlreader: *
- cpsit/import-export-core: ^0.7
- dwenzel/t3extension-tools: ^6.2
- symfony/expression-language: ^7.1
- typo3/cms-core: ^14.3
Requires (Dev)
- armin/editorconfig-cli: ^2.0
- ergebnis/composer-normalize: ^2.28
- friendsofphp/php-cs-fixer: ^3.57
- helhum/typo3-console: ^8.2 || ^9.0
- mikey179/vfsstream: ^1.6
- phpstan/extension-installer: ^1.2
- phpstan/phpstan: ^2.1
- phpunit/phpcov: ^11.0
- phpunit/phpunit: ^11.5 || ^12.1
- rector/rector: ~2.8.5
- roave/security-advisories: dev-latest
- saschaegerer/phpstan-typo3: ^3.1
- ssch/typo3-rector: ^3.0
- typo3/cms-frontend: ^14.3
- typo3/coding-standards: ^0.8.0
- typo3/testing-framework: ^9.7
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-main / 4.1.x-dev
- 4.0.0
- 3.3.2
- 3.3.1
- 3.3.0
- 3.2.0
- 3.1.1
- 3.1.0
- 3.0.1
- 3.0.0
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.5
- 1.0.4
- 0.14.0
- 0.13.0
- 0.12.1
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.1
- 0.8.0
- 0.7.0
- 0.6.5
- 0.6.4
- 0.6.3
- 0.6.2
- 0.6.1
- 0.6.0
- 0.5.0
- dev-doc/roadmap
- dev-task/coverage-services-validators
- dev-release/4.0.0
- dev-support/typo3-v11
- dev-support/typo3-v12
- dev-support/typo3-v13
- dev-security/active-content-targets
- dev-feature/e6-core-queue-adapters
- dev-feature/116-typo3-v15
- dev-feature/version11compatible
This package is auto-updated.
Last update: 2026-12-01 16:07:48 UTC
README
The Import & Export extension provides a comprehensive, flexible framework for importing and exporting data in TYPO3 14.3. It supports multiple data formats, sources, and destinations with powerful transformation capabilities through a modular component architecture.
Imports data from different sources into TYPO3 and exports from TYPO3 to different targets. Possible data sources and targets are databases, and files (XML, CSV...). Import and export tasks are described in YAML files and can be grouped to sets. Tasks can be executed manually via backend module or command line or automatically as a scheduler task.
Support matrix
| TYPO3 | Branch | Latest release | Status |
|---|---|---|---|
| 14.3 | main |
4.0.0 | maintained |
| 13.4 | support/typo3-v13 |
3.3.2 | bugfixes |
| 12.4 | support/typo3-v12 |
2.0.6 | bugfixes |
| 11.5 | support/typo3-v11 |
1.1.5 | bugfixes |
| 9.5, 10.4 | none | 1.0.5 | not maintained |
| 6.2 - 8.7 | none | 0.14.0 | not maintained |
See CONTRIBUTING.md for the branching model and the release process.
Table of Contents
📋 Getting Started
🏗️ Core Concepts
🔧 Configuration
🧩 Components
Component Types
-
Initializers - Pre-execution setup
-
PreProcessors - Data transformation
- Pre-processors of
cpsit/import-export-core, e.g.ValueRulesPreProcessor,SetValuesPreProcessor,CleanPreProcessor: see Deprecations - LookUpDB
- ValidateXMLPreProcessor (core)
- XMLMapperPreProcessor (core)
- Pre-processors of
-
Converters - Format transformation
-
PostProcessors - Object enhancement
-
Finishers - Post-execution tasks
💾 Data Sources & Targets
- Data Persistence Overview
- Data Sources
- Data Targets
- ID map and state components
- Files: paths and URLs
🔌 Services & Utilities
🚀 Execution Methods
🛠️ Development
Overview
The Import & Export extension provides a comprehensive, flexible framework for importing and exporting data in TYPO3 14.3. It supports multiple data formats, sources, and destinations with powerful transformation capabilities through a modular component architecture.
Key Features
- Multiple Data Formats: CSV, XML, Database, Repository objects
- Flexible Architecture: Modular component system for data transformation
- TYPO3 14.3: Compatible with TYPO3 14.3 LTS
- Command Line Support: CLI execution for automation and scheduling
- Backend Integration: User-friendly backend module interface
- YAML Configuration: Tasks and sets are configured in YAML files
- Queue System: Asynchronous processing capabilities
- Multi-language Support: Localization and translation workflows
Installation
Via Composer (Recommended)
composer require cpsit/t3import_export
In Composer mode the extension is active after installation. Update the
database schema afterwards (vendor/bin/typo3 extension:setup).
For detailed installation instructions, troubleshooting, and environment setup, see Installation Guide.
Quick Start Guide
1. Basic Configuration
Create a YAML file in one of the configured directories (see YAML configuration) with an import task:
import: tasks: newsImport: label: "News Import" description: "Import news from CSV file" source: class: "CPSIT\\ImportExportCore\\File\\DataSourceCSV" config: file: "fileadmin/imports/news.csv" delimiter: "," enclosure: "\"" preProcessors: - class: "CPSIT\\ImportExportCore\\Processor\\ValueRulesPreProcessor" config: rules: - {rule: copy, field: headline, from: title} - {rule: copy, field: content, from: bodytext} target: class: "CPSIT\\T3importExport\\Persistence\\DataTargetDB" config: table: "tx_news_domain_model_news"
2. Execution
Execute via command line:
vendor/bin/typo3 t3import-export:import-task newsImport
Or via YAML configuration:
vendor/bin/typo3 t3import-export:import-set --yaml-config path/to/config.yaml
System Requirements
- TYPO3: 14.3 LTS
- PHP: 8.3 or 8.4
- Dependencies (installed by Composer):
- cpsit/import-export-core ^0.7
- dwenzel/t3extension-tools
- symfony/expression-language
Architecture Overview
For detailed architecture information, see Architecture Overview.
Configuration Overview
Tasks and sets are configured in YAML files. The TypoScript configuration
(module.tx_t3importexport.settings) was removed in version 4.0; the command
t3import-export:convert-typoscript converts it to YAML, see
Deprecations.
- Configuration - Tasks and sets
- YAML Configuration - Reference and examples
Tasks and Sets
Tasks
A Task is a single import or export operation with:
- One data source
- One data target
- Optional processing components (Initializers, PreProcessors, Converters, PostProcessors, Finishers)
Sets
A Set is a collection of tasks that are executed sequentially. Sets allow you to:
- Group related operations
- Ensure proper execution order
- Manage complex data workflows
Processing Flow
Each task execution follows this flow:
- Read: The records of all tasks are read from their sources
- Initialize: Execute Initializers (e.g., clear tables, prepare data)
- Process Records: For each record, in batches of 100:
- Apply PreProcessors (transform data)
- Apply Converters (change format)
- Apply PostProcessors (enhance objects)
- Persist to target
- Finalize: Execute Finishers (e.g., clear cache, validate results)
Component Types
Initializers
Execute before processing starts. Common uses:
- Clear target tables
- Delete specific records
- Insert default data
- Update table structures
PreProcessors
Transform raw data before conversion. Common uses:
- Map field names
- Transform field values
- Database lookups
- Data validation and cleaning
Converters
Change data format. Common uses:
- Convert arrays to domain objects
- Generate XML streams
- Transform data structures
PostProcessors
Enhance processed objects. Common uses:
- Generate file references
- Set localization relationships
- Create URL slugs
- Handle translations
Finishers
Execute after processing completes. Common uses:
- Clear TYPO3 caches
- Validate generated files
- Move files to final location
- Send notifications
Backend Module
Access the import/export module in the TYPO3 backend:
- Navigate to System > Imports or System > Exports
- Select a configured task or set
- Execute it
Command Line Interface
Available commands:
t3import-export:import-task <taskId>- Execute single import taskt3import-export:import-set <setId>- Execute import sett3import-export:export-set <setId>- Execute export sett3import-export:export-task <taskId>- Execute single export taskt3import-export:queue:status- Show the number of queue items by status, see Queuet3import-export:queue:release- Set queue items in processing back to newt3import-export:convert-typoscript- Convert tasks and sets from TypoScript to YAML (command line only)
The commands have the short aliases import:task, import:set,
export:task, export:set, queue:status and queue:release.
Options:
--yaml-config <file>- Use YAML configuration file (import-set,export-setandexport-task); the path is relative to the working directory and is not restricted to the allowed directories
Scheduler Integration
The commands can be run by the TYPO3 Scheduler:
- Create a new Scheduler task of the type Execute console commands
- Select a command, e.g.
t3import-export:import-set - Enter the task or set identifier as argument
- Set the execution schedule
t3import-export:convert-typoscript is not offered by the Scheduler.
Configuration Examples
CSV Import with Field Mapping
import: tasks: productImport: source: class: "CPSIT\\ImportExportCore\\File\\DataSourceCSV" config: file: "fileadmin/imports/products.csv" delimiter: ";" preProcessors: - class: "CPSIT\\ImportExportCore\\Processor\\ValueRulesPreProcessor" config: rules: - {rule: copy, field: product_name, from: name} - {rule: copy, field: product_price, from: price} - {rule: copy, field: product_desc, from: description} target: class: "CPSIT\\T3importExport\\Persistence\\DataTargetDB" config: table: "tx_shop_domain_model_product"
XML Export with Validation
export: tasks: newsExport: source: class: "CPSIT\\T3importExport\\Persistence\\DataSourceDB" config: table: "tx_news_domain_model_news" where: hidden: 0 deleted: 0 converters: # converts each record into an XML element <item> - class: "CPSIT\\T3importExport\\Component\\Converter\\ArrayToXMLStream" config: targetClass: "CPSIT\\ImportExportCore\\Domain\\Model\\DataStream" nodeName: "item" target: class: "CPSIT\\T3importExport\\Persistence\\DataTargetXMLStream" config: output: file # write to a temporary file rootNodeName: "news" finishers: # store the temporary file as fileadmin/exports/news.xml - class: "CPSIT\\T3importExport\\Component\\Finisher\\WriteFile" config: target: name: "news.xml" directory: "exports" conflictMode: replace - class: "CPSIT\\ImportExportCore\\File\\ValidateXMLFinisher" config: file: "fileadmin/exports/news.xml" schema: file: "fileadmin/schemas/news.xsd"
Common Use Cases
Content Migration
- Migrate from legacy CMS systems
- Update database structures
- Transform content formats
- Synchronize multi-site content
Data Integration
- Import from external APIs
- Synchronize with ERP systems
- Process CSV/XML data feeds
- Integrate with third-party services
Maintenance Operations
- Bulk content updates
- Database cleanup
- Asset management
- Automated backups
Troubleshooting
Common Issues
- Memory Limits: The records of a task are read before they are processed; for large datasets, increase the PHP memory limit or split the data with a queue
- File Permissions: Ensure TYPO3 can read source files and write to target locations
- Database Connections: Verify database credentials for external sources
- Component Configuration: Check component configuration syntax and required parameters
Log Files
Check TYPO3 log files for detailed error information:
var/log/typo3_*.log- Component-specific error messages
- The deprecation log for deprecated options
API Documentation
For detailed API documentation, refer to the inline code documentation. The
UML diagrams in Documentation/UML/ describe an earlier version and are not
updated for 4.0.
Contributing
Planned changes are listed in ROADMAP.md.
Please refer to DEVELOPMENT.md for guidelines on:
- Setting up development environment
- Coding standards
- Testing procedures
- Contribution workflow
Credits
Thanks for contribution and feedback:
- Sebastian Kreideweiss
- Jan-Henrik Hempel
- Benjamin Rannow
- Nicole Cordes
- Vladimir Falcón Piva
- Benjamin Schütz
Support
- Issues: Report bugs and feature requests on GitHub
- Documentation: This documentation covers all aspects of the extension
- Community: Join TYPO3 community channels for general support
This extension has been developed at CPS IT GmbH.
For enterprise support and custom development, contact CPS IT GmbH.