friendsofsulu / sulu-import-export-bundle
Import/Export Bundle for Sulu (database and uploads; PHPCR export/import when available)
Package info
github.com/FriendsOfSulu/SuluImportExportBundle
Type:sulu-bundle
pkg:composer/friendsofsulu/sulu-import-export-bundle
Requires
- php: ^8.2
- doctrine/doctrine-bundle: ^2.4 || ^3.0
- sulu/sulu: ^2.6 || ^3.0
- symfony/config: ^5.4 || ^6.4 || ^7.0
- symfony/console: ^5.4 || ^6.4 || ^7.0
- symfony/dependency-injection: ^5.4 || ^6.4 || ^7.0
- symfony/framework-bundle: ^5.4 || ^6.4 || ^7.0
- symfony/http-foundation: ^5.4 || ^6.4 || ^7.0
- symfony/http-kernel: ^5.4 || ^6.4 || ^7.0
- symfony/process: ^5.4 || ^6.4 || ^7.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-23 11:14:10 UTC
README
- PHP >= 8.2
- Sulu 2.6 or 3.0
- Symfony 6.4 / 7.*
Sulu 3 compatibility
Sulu 3 stores all content in the database and no longer ships PHPCR. On Sulu 3 the
sulu:export / sulu:import commands therefore skip the PHPCR workspace automatically:
they export and import the database and the uploads only. On Sulu 2.6 the PHPCR
workspace is still exported and imported.
Install the bundle
Execute the following composer command to add the bundle to the dependencies of your project:
composer require friendsofsulu/sulu-import-export-bundle
Enable the bundle
Enable the bundle by adding it to the list of registered bundles in the config/bundles.php file of your project:
return [ /* ... */ FriendsOfSulu\Bundle\SuluImportExportBundle\SuluImportExportBundle::class => ['all' => true], ];
Configure the bundle
If the doctrine database connection used by Sulu is not the 'default' DBAL connection you have to specify the connection name in the bundle's configuration.
# config/packages/sulu_import_export.yaml sulu_import_export: dbal_connection: default
Configure the import and export paths in your .env in the following way.
MEDIA_PATH='var/uploads/media' IMPORT_DIR='var/import/' EXPORT_DIR='var/export/'
UPGRADE
1.1.1
Since version 1.1.1 it should be possible to change the path of the export and import easily. For this the ENV must be extended by the following variables. To map the same function as in the 1.0.0 version it is sufficient to leave the variables empty.
IMPORT_DIR= EXPORT_DIR=
2.1.0
All namespaces have been renamed.
#old TheCadien\Bundle\SuluImportExportBundle\ #new FriendsOfSulu\Bundle\SuluImportExportBundle\