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.
| TYPO3 | Branch | Latest release | Status |
|---|---|---|---|
| 14.3 | main |
4.0.0 (in preparation) | maintained |
| 13.4 | support/typo3-v13 |
3.3.0 | bugfixes |
| 12.4 | support/typo3-v12 |
2.0.4 | bugfixes |
| 11.5 | support/typo3-v11 |
1.1.2 | 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.
-
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 Persistence Overview
- Data Sources
- Data Targets
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.
- 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
composer require cpsit/t3import_exportActivate the extension in the TYPO3 Extension Manager.
For detailed installation instructions, troubleshooting, and environment setup, see Installation Guide.
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"Execute via command line:
vendor/bin/typo3 t3import-export:import-task newsImportOr via YAML configuration:
vendor/bin/typo3 t3import-export:import-set --yaml-config path/to/config.yaml- TYPO3: 14.3 LTS
- PHP: 8.3 or 8.4
- Dependencies:
- symfony/yaml (for YAML configuration)
- TYPO3 core extensions (extbase, fluid)
For detailed architecture information, see Architecture 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
A Task is a single import or export operation with:
- One data source
- One data target
- Optional processing components (Initializers, PreProcessors, Converters, PostProcessors, Finishers)
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
Each task execution follows this flow:
- Initialize: Execute Initializers (e.g., clear tables, prepare data)
- Build Queue: Load data from source into processing queue
- Process Records: For each record:
- Apply PreProcessors (transform data)
- Apply Converters (change format)
- Apply PostProcessors (enhance objects)
- Persist to target
- Finalize: Execute Finishers (e.g., clear cache, validate results)
Execute before processing starts. Common uses:
- Clear target tables
- Delete specific records
- Insert default data
- Update table structures
Transform raw data before conversion. Common uses:
- Map field names
- Transform field values
- Database lookups
- Data validation and cleaning
Change data format. Common uses:
- Convert arrays to domain objects
- Generate XML streams
- Transform data structures
Enhance processed objects. Common uses:
- Generate file references
- Set localization relationships
- Create URL slugs
- Handle translations
Execute after processing completes. Common uses:
- Clear TYPO3 caches
- Validate generated files
- Move files to final location
- Send notifications
Access the import/export module in the TYPO3 backend:
- Navigate to System > Import/Export
- Choose Import or Export module
- Select configured tasks or sets
- Execute with real-time progress feedback
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 task
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
The extension integrates with TYPO3 Scheduler for automated execution:
- Create new Scheduler task
- Select Import/Export Task type
- Configure task or set to execute
- Set execution schedule
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"export:
tasks:
newsExport:
source:
class: "CPSIT\\T3importExport\\Persistence\\DataSourceDB"
config:
table: "tx_news_domain_model_news"
where: "hidden = 0"
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"- Migrate from legacy CMS systems
- Update database structures
- Transform content formats
- Synchronize multi-site content
- Import from external APIs
- Synchronize with ERP systems
- Process CSV/XML data feeds
- Integrate with third-party services
- Bulk content updates
- Database cleanup
- Asset management
- Automated backups
- Memory Limits: For large datasets, increase PHP memory limit or use queue processing
- 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
Check TYPO3 log files for detailed error information:
var/log/typo3_*.log- Component-specific error messages
- SQL query logs for database operations
For detailed API documentation, refer to the inline code documentation and the Documentation/UML/ directory containing UML diagrams.
Please refer to DEVELOPMENT.md for guidelines on:
- Setting up development environment
- Coding standards
- Testing procedures
- Contribution workflow
Thanks for contribution and feedback:
- Sebastian Kreideweiss
- Jan-Henrik Hempel
- Benjamin Rannow
- Nicole Cordes
- Vladimir Falcón Piva
- Benjamin Schütz
- 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.