PHPackages                             divante-ltd/pimcore-document-copier - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. divante-ltd/pimcore-document-copier

ActivePimcore-bundle[Utility &amp; Helpers](/categories/utility)

divante-ltd/pimcore-document-copier
===================================

Pimcore bundle for copying documents between environments

0.1.1(6y ago)34.4k4[1 issues](https://github.com/DivanteLtd/pimcore-document-copier/issues)[2 PRs](https://github.com/DivanteLtd/pimcore-document-copier/pulls)GPLv3PHPPHP &gt;=7.1CI failing

Since Feb 24Pushed 5y ago19 watchersCompare

[ Source](https://github.com/DivanteLtd/pimcore-document-copier)[ Packagist](https://packagist.org/packages/divante-ltd/pimcore-document-copier)[ Docs](https://www.divante.com/)[ RSS](/packages/divante-ltd-pimcore-document-copier/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (9)Versions (6)Used By (0)

Pimcore Document Copier
=======================

[](#pimcore-document-copier)

Pimcore bundle for copying documents between environments

**Table of Contents**

- [Pimcore Document Copier](#pimcore-document-copier)
    - [Compatibility](#compatibility)
    - [Installing/Getting started](#installinggetting-started)
    - [Usage](#usage)
        - [Admin panel](#admin-interface)
        - [Commands](#commands)
        - [Limitations](#limitations)
    - [Testing](#testing)
    - [Contributing](#contributing)
    - [Licence](#licence)
    - [Standards &amp; Code Quality](#standards--code-quality)
    - [About Authors](#about-authors)

Compatibility
-------------

[](#compatibility)

This module was tested on:

- Pimcore 6.1.2 @ PHP 7.3
- Pimcore 6.4.2 @ PHP 7.3
- Pimcore 6.5.3 @ PHP 7.3

Installing/Getting started
--------------------------

[](#installinggetting-started)

Install latest version:

```
composer require divante-ltd/pimcore-document-copier
```

Add routing to `app/config/routing.yml`:

```
_documentcopier:
    resource: "@DocumentCopierBundle/Resources/config/pimcore/routing.yml"
```

Enable the bundle:

```
bin/console pimcore:bundle:enable DocumentCopierBundle
```

Import example documents:

```
bin/console document-copier:import --path=/codecept-document-copier/foo/bar --root=vendor/divante/pimcore-document-copier/app/Resources/test_root --recursiveDepth=2
```

View imported documents in Pimcore admin panel:
[![Example documents imported](docs/example-documents-imported.png "Example documents imported")](docs/example-documents-imported.png)

Usage
-----

[](#usage)

### Admin interface

[](#admin-interface)

- In document tree, right-click **the document** that you would like to export or import.
- If the document you're importing doesn't exist, first create an empty one with the exact same path and key.
- It is possible to import only a selected document (for example `/codecept-document-copier/foo/bar` with depth `0`) even if uploaded ZIP file contains much more assets and documents (for example the entire `/codecept-document-copier`exported at depth `10`).

[![Context menu](docs/context-menu.png "Context menu")](docs/context-menu.png)

#### Export dialog

[](#export-dialog)

Download a zipped export of selected document with or without its dependencies (other documents &amp; assets).

[![Export dialog](docs/export-dialog.png "Export dialog")](docs/export-dialog.png)

#### Import dialog

[](#import-dialog)

Import a ZIP file with or without the dependencies.

[![Import dialog](docs/import-dialog.png "Import dialog")](docs/import-dialog.png)

### Commands

[](#commands)

Commands below are run whenever user requests import / export from admin panel.
You can also run these commands directly. For example, you may keep your documents in repository and import them during migrations.

#### Export command

[](#export-command)

```
bin/console document-copier:export --path=PATH --root[=ROOT] --recursiveDepth[=RECURSIVEDEPTH]
```

Options:

- `--path=PATH` **Document path**
    Full path to the document as in admin panel
- `--root[=ROOT]` **Resources root** \[default: `app/Resources`\]
    Exported JSONs and assets will be saved to this directory
    Leave this parameter as default unless you need to keep different versions of documents
- `--recursiveDepth[=RECURSIVEDEPTH]` **Max depth of dependency tree** \[default: `0`\]
    Keep this number small to avoid accidentally overwriting too many documents
    If `0`, no dependencies (documents &amp; assets) will be exported
    If `1`, only direct dependencies will be exported (child documents, as well as documents &amp; assets referenced in the document)
    If greater than `1`, dependencies and their dependencies will be exported recursively

#### Import command

[](#import-command)

```
bin/console document-copier:import --path=PATH --root[=ROOT] --recursiveDepth[=RECURSIVEDEPTH]
```

Options:

- `--path=PATH` **Document path**
    *Same as in export command*
- `--root[=ROOT]` **Resources root** \[default: `app/Resources`\]
    JSONs and assets will be loaded from this directory.
    File structure in this directory must reflect document and asset trees as in admin panel.
    Leave this parameter as default unless you need to keep different versions of documents
- `--recursiveDepth[=RECURSIVEDEPTH]` **Max depth of dependency tree** \[default: `0`\]
    *Same as in export command*

### Limitations

[](#limitations)

**Data objects** are not handled by this package. Use other methods like CSV export instead.
Features listed below have not been implemented as of yet (pull requests are welcome!)

Unsupported document types:

- newsletter
- printpage
- printcontainer

Unsupported editable types:

- embed
- pdf
- relation
- relations
- renderlet
- video

Unsupported document settings:

- Content-Master Document
- Target Groups
- HTML-Tags

Testing
-------

[](#testing)

Run tests locally:

```
vendor/bin/codecept run -c tests/codeception.dist.yml
```

Contributing
------------

[](#contributing)

If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.

Licence
-------

[](#licence)

Pimcore Document Copier source code is completely free and released under the [GNU General Public License v3.0](%7Brepository_url%7D/blob/master/LICENSE).

Standards &amp; Code Quality
----------------------------

[](#standards--code-quality)

This module respects all Pimcore 6 code quality rules and our own PHPCS and PHPMD rulesets.

About Authors
-------------

[](#about-authors)

[![Divante-logo](https://camo.githubusercontent.com/c2e3cbe2ee52e9e9986e7fc0122604b9459875660fa17241d8be9cbe645d4571/687474703a2f2f646976616e74652e636f6d2f6c6f676f2d48472e706e67 "Divante")](https://camo.githubusercontent.com/c2e3cbe2ee52e9e9986e7fc0122604b9459875660fa17241d8be9cbe645d4571/687474703a2f2f646976616e74652e636f6d2f6c6f676f2d48472e706e67)

We are a Software House from Europe, existing from 2008 and employing about 150 people. Our core competencies are built around Magento, Pimcore and bespoke software projects (we love Symfony3, Node.js, Angular, React, Vue.js). We specialize in sophisticated integration projects trying to connect hardcore IT with good product design and UX.

We work for Clients like INTERSPORT, ING, Odlo, Onderdelenwinkel and CDP, the company that produced The Witcher game. We develop two projects: [Open Loyalty](http://www.openloyalty.io/ "Open Loyalty") - an open source loyalty program and [Vue.js Storefront](https://github.com/DivanteLtd/vue-storefront "Vue.js Storefront").

We are part of the OEX Group which is listed on the Warsaw Stock Exchange. Our annual revenue has been growing at a minimum of about 30% year on year.

Visit our website [divante.com](https://divante.com/ "divante.com") for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

2217d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1809664?v=4)[Kuba Płaskonka](/maintainers/kubaplas)[@kubaplas](https://github.com/kubaplas)

---

Top Contributors

[![t-zilla](https://avatars.githubusercontent.com/u/32539404?v=4)](https://github.com/t-zilla "t-zilla (29 commits)")

---

Tags

pimcorepimcore-plugin

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/divante-ltd-pimcore-document-copier/health.svg)

```
[![Health](https://phpackages.com/badges/divante-ltd-pimcore-document-copier/health.svg)](https://phpackages.com/packages/divante-ltd-pimcore-document-copier)
```

###  Alternatives

[instride/data-definitions

Data Definitions allows you to define your DataObject Imports and Exports using a nice GUI and re-run the definitions as often you like.

8117.7k](/packages/instride-data-definitions)[dpfaffenbauer/process-manager

Process Manager helps you to see statuses for long running Processes

3289.3k2](/packages/dpfaffenbauer-process-manager)[youwe/workflow-gui

Workflow Configuration UI for Pimcore

2884.6k](/packages/youwe-workflow-gui)[dachcom-digital/formbuilder

Pimcore FormBuilder - create forms easily!

96269.7k](/packages/dachcom-digital-formbuilder)[dachcom-digital/schema

Pimcore Schema

1075.7k](/packages/dachcom-digital-schema)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
