thecadien / sulu-import-export-bundle
Import/Export Bundle for Sulu 2 CMS
Installs: 5 274
Dependents: 0
Suggesters: 0
Security: 0
Stars: 13
Watchers: 3
Forks: 6
Open Issues: 5
Type:sulu-bundle
Requires
- php: ^7.3|^8.0
- doctrine/doctrine-bundle: >=1.0
- sulu/sulu: ^2.0.1
- symfony/config: ^4.3 || ^5.0 || ^6.0
- symfony/dependency-injection: ^4.3 || ^5.0 || ^6.0
- symfony/framework-bundle: ^4.3 || ^5.0 || ^6.0
- symfony/http-foundation: ^4.3 || ^5.0 || ^6.0
- symfony/http-kernel: ^4.3 || ^5.0.7 || ^6.0
Requires (Dev)
- coduo/php-matcher: ^4.0
- handcraftedinthealps/code-coverage-checker: ^0.2.1
- handcraftedinthealps/zendsearch: ^2.0
- jackalope/jackalope-doctrine-dbal: ^1.3.4
- jangregor/phpstan-prophecy: ^0.8
- phpstan/phpstan: ^0.12
- phpstan/phpstan-doctrine: ^0.12
- phpstan/phpstan-phpunit: ^0.12
- phpstan/phpstan-symfony: ^0.12
- phpunit/phpunit: ^8.0
- symfony/browser-kit: ^4.3 || ^5.0 || ^6.0
- symfony/console: ^4.3 || ^5.0 || ^6.0
- symfony/dotenv: ^4.3 || ^5.0 || ^6.0
- symfony/error-handler: ^4.4 || ^5.0 || ^6.0
- symfony/monolog-bundle: ^3.1
- thecodingmachine/phpstan-strict-rules: ^0.12
README
- PHP >= 7.3
- Sulu 2.*
- Symfony 4.4 / 5.* / 6
Install the bundle
Execute the following composer command to add the bundle to the dependencies of your project:
composer require thecadien/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 [ /* ... */ TheCadien\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=