teamneusta / pimcore-import-export-bundle
Export documents to YAML, so that they can be used in fixtures
Installs: 258
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 8
Forks: 0
Open Issues: 4
Type:pimcore-bundle
Requires
- php: ~8.1.0 || ~8.2.0 || ~8.3.0
- pimcore/pimcore: ^11.0
- teamneusta/converter-bundle: ^1.7
- teamneusta/pimcore-fixture-bundle: ^2.2
Requires (Dev)
- ergebnis/composer-normalize: ^2.42.0
- friendsofphp/php-cs-fixer: ^3.60
- phpspec/prophecy-phpunit: ^2.2
- phpstan/extension-installer: ^1.3.1
- phpstan/phpstan: ^1.10.60
- phpstan/phpstan-phpunit: ^1.3.16
- phpstan/phpstan-symfony: ^1.3.8
- phpunit/phpunit: ^9.5
- pimcore/admin-ui-classic-bundle: ^1.6
- teamneusta/pimcore-testing-framework: ^0.12
README
Installation
-
Require the bundle
composer require teamneusta/pimcore-import-export-bundle
-
Enable the bundle
Add the Bundle to your
config/bundles.php
:Neusta\Pimcore\ImportExportBundle\NeustaPimcoreImportExportBundle::class => ['all' => true],
Usage
After enabling the bundle you should see a new menu item in the context menu of Pimcore Admin Backend - Section Documents:
(german translation)
Page Export
The selected page will be exported into YAML format:
page: id: 123 parentId: 1 type: page published: true path: / language: de navigation_name: my-site navigation_title: 'My Site' key: my-site title: 'My Site' controller: 'App\DefaultController::indexAction' editables: main: type: areablock name: main data: [{ key: '1', type: text-editor, hidden: false }] ...
In the same way you can re-import your yaml file again by selecting: Import from YAML
in the context menu.
Configuration
Page Import
The import process will create a new page with the given data.
Contribution
Feel free to open issues for any bug, feature request, or other ideas.
Please remember to create an issue before creating large pull requests.
Local Development
To develop on your local machine, the vendor dependencies are required.
bin/composer install
We use composer scripts for our main quality tools. They can be executed via the bin/composer
file as well.
bin/composer cs:fix bin/composer phpstan bin/composer tests