Download the PHP package deployecommerce/module-url-rewrite-import-export without Composer

On this page you can find all versions of the php package deployecommerce/module-url-rewrite-import-export. 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 module-url-rewrite-import-export

DeployEcommerce_UrlRewriteImportExport

Export and import the Magento url_rewrite table as CSV from the admin, with safety backups.

What it does

Admin page: System → Tools → URL Rewrite Import / Export.

Why the duplicate generated rewrite guard exists

url_rewrite is unique on (request_path, store_id) only. Nothing in the schema stops two rows from claiming is_autogenerated = 1 for the same (entity_type, entity_id, store_id) — for example a path generated before a url_key change plus the current one. Magento normally avoids that because UrlPersist::replace() deletes an entity's superseded rows, but this tool writes with raw inserts, so a CSV holding an old generated path can reintroduce one.

The consequence is not limited to a stale URL. Magento\Catalog\Model\ResourceModel\Category\Collection::joinUrlRewrite() (and the product equivalent) LEFT JOINs url_rewrite on entity_id and then indexes the loaded entities by id, so a second generated row returns a second result row and the collection throws:

That kills every consumer of those collections in one go — main menu, top navigation and the Amasty HTML/XML sitemaps — with a 500 on the storefront, and the frontend category collection is cached, so it stays broken until the cache is flushed.

After an import, DuplicateAutogeneratedFixer therefore enforces one generated rewrite per entity per store across the whole table: the highest url_rewrite_id wins (the most recently generated path, i.e. the one matching the entity's current url_key) and the losers become is_autogenerated = 0, redirect_type = 301 pointing at the winner — the same shape core produces on a url_key change, so old inbound links keep working. Because it runs against the finished table rather than individual CSV rows, the outcome does not depend on CSV row order, and rows that were already duplicated before the import are repaired too.

Install

This module ships as a standalone Composer package, deployecommerce/module-url-rewrite-import-export.

Via a VCS / Packagist repository (deploy)

Via a local path repository (development)

Add a path repository pointing at this checkout and require it as @dev:

In a Docker setup whose vendor/ is a named volume, the path-repo target must be visible inside the container — mount this checkout into the project, e.g. /path/to/module:/var/www/html/packages/module-url-rewrite-import-export.

league/csv:^9.28 is a hard dependency (declared in this module's composer.json) and is pulled in automatically by Composer.

Tests (PEST)

The framework-free service classes (HeaderValidator, FilenameGenerator) are unit-tested with PEST. The harness is isolated under tests/ with its own composer.json because Pest 2 ships PHPUnit 10, which conflicts with Magento's bundled PHPUnit 9 — keeping it separate avoids the clash and never boots Magento.

Database-touching classes (Exporter, Importer, BackupWriter) are integration territory and are intentionally out of the pure-unit harness.


All versions of module-url-rewrite-import-export with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
magento/framework Version *
league/csv Version ^9.28
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 deployecommerce/module-url-rewrite-import-export contains the following files

Loading the files please wait ...