Download the PHP package sulu/phpcr-migration-bundle without Composer

On this page you can find all versions of the php package sulu/phpcr-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 phpcr-migration-bundle

SuluPhpcrMigrationBundle

Official Sulu Bundle Badge

Upgrading Data from Sulu 2.6 to Sulu 3.0

![Note] The upgrade from Sulu 2.6 to Sulu 3.0 is a major upgrade and will require some migration steps.

You can find the full upgrade guide here: sulu/sulu UPGRADE.md

How to install

Install the package:

Add the new migration bundle to your config/bundles.php:

Configure the SuluPhpcrMigrationBundle in config/packages/sulu_phpcr_migration.yaml:

If you are currently using Jackrabbit, use the "jackrabbit://" based DSN string. After the upgrade, Apache Jackrabbit is no longer used by Sulu’s new content storage and can be removed from your projects in most situations.

How to use

In case of some errors on customized code, you can try to fix it and rerun the command. The migration command can be rerun, the existing already migrated content will be overwritten and not duplicated.

If you only want to migrate certain document types pass them as an argument (or comma separated if it's a list)

Allowed types are: snippet, page, article

Dry-run mode

Preview a migration without writing anything to the target database:

This executes the full parse and persist pipeline against your real PHPCR content, but every database write is intercepted in-memory. The command collects every exception (one per document or document/locale pair), continues past failures, and at the end prints a grouped summary plus a JSON report you can hand off for data cleanup.

Default report path: var/phpcr-migration/dry-run-YYYYMMDD-HHMMSS.json. Override it with --report=/path/to/report.json.

Limitations. Dry-run catches PHP-level validation errors (title/slug length, missing webspace or parent, missing shadow template, etc.) but does not catch database-level issues such as foreign-key violations, unique-key collisions between two rows that would be written in the same run, column truncation, or NOT NULL violations on columns populated only by database defaults. Post-migration queries (permission contexts, access controls, automation tasks) are skipped in dry-run mode.

🛠️  Development

Quick Start

Testing

This bundle uses functional tests with JSON baseline comparison to validate migration correctness.

See docs/TESTING.md for comprehensive documentation:

❤️  Support and Contributions

The Sulu content management system is a community-driven open source project backed by various partner companies. We are committed to a fully transparent development process and highly appreciate any contributions.

In case you have questions, we are happy to welcome you in our official Slack channel. If you found a bug or miss a specific feature, feel free to file a new issue with a respective title and description on the sulu/SuluPHPCRMigrationBundle repository.

📘  License

The Sulu content management system is released under the under terms of the MIT License.


All versions of phpcr-migration-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
doctrine/orm Version ^2.17.3 || ^3.3
jackalope/jackalope-doctrine-dbal Version ^2.0
jackalope/jackalope-jackrabbit Version ^2.0
sulu/sulu Version ^3.0
symfony/config Version ^6.1 || ^7.0
symfony/console Version ^6.1 || ^7.0
symfony/dependency-injection Version ^6.1 || ^7.0
symfony/framework-bundle Version ^6.1 || ^7.0
symfony/property-access Version ^6.1 || ^7.0
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 sulu/phpcr-migration-bundle contains the following files

Loading the files please wait ...