Download the PHP package dennispansegrau/pimcore-content-migration-bundle without Composer

On this page you can find all versions of the php package dennispansegrau/pimcore-content-migration-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package pimcore-content-migration-bundle

Compatibility: Pimcore 11 and above.

Pimcore Content Migrations Bundle

The Pimcore Content Migrations Bundle introduces a migration system — similar to Doctrine Migrations — for Documents, Assets, and Data Objects in Pimcore.
It allows developers to export Pimcore content structures as executable PHP migration scripts and rebuild entire environments from scratch, enabling consistent and reproducible deployments across development, staging, and production systems.
The generated migrations create only dummy dependencies — documents, assets, and data objects are included with their content, but without their dependencies or child elements.


📚 Table of Contents


✨ Features


⚙️ Installation

Install the bundle via Composer:

Add the bundle to your config/bundles.php:


🧰 Configuration

If you do not use doctrine migrations in your project yet, please add following to your config/config.yaml:

This defines where generated content migration files are stored.

You can also set a default namespace to avoid passing it every time:

When set, content:migration:create uses this namespace if none is provided.


🧩 CLI Command

Name Description
TYPE The Pimcore element type (document, asset, or object)
ID The ID of the Pimcore element to export
Option Description
--namespace The namespace for the generated migration class (falls back to pimcore_content_migration.default_namespace if set)
--with-children Include all child elements (e.g., sub-documents or child objects) in the migration file
--inline-wysiwyg Inline WYSIWYG field content directly into the migration instead of saving it in a separate HTML file

💻 Example

This command creates a migration for the document with ID 1 and stores it in the namespace App\Migrations\Content.


🧩 Custom DataType handlers

If you use custom DataTypes (or hit "Unsupported object of class" errors), you can register your own stringifier handler to control how values are serialized in migrations.

Example handler:

Register it as a service (priority can be adjusted to run before the default handler):


🎨 Custom Twig templates

You can override the bundled Twig templates to adapt the generated migration code to your own style. The bundle reads template paths from configuration, so you can point to your own templates.

Example configuration:

When customizing templates, use the Twig helper pcmb_value_to_string to safely serialize Pimcore objects and complex values into PHP code:


🧠 Notes


🧾 License

This bundle is licensed under the MIT License.


All versions of pimcore-content-migration-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dennispansegrau/pimcore-content-migration-bundle contains the following files

Loading the files please wait ...