PHPackages                             deployecommerce/module-url-rewrite-import-export - 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. [DevOps &amp; Deployment](/categories/devops)
4. /
5. deployecommerce/module-url-rewrite-import-export

ActiveMagento2-module[DevOps &amp; Deployment](/categories/devops)

deployecommerce/module-url-rewrite-import-export
================================================

Export and import the url\_rewrite table as CSV from the Magento admin.

1.0.0(today)04↑2900%MITPHPPHP &gt;=8.2

Since Jun 19Pushed todayCompare

[ Source](https://github.com/DeployEcommerce/module-url-rewrite-import-export)[ Packagist](https://packagist.org/packages/deployecommerce/module-url-rewrite-import-export)[ RSS](/packages/deployecommerce-module-url-rewrite-import-export/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

DeployEcommerce\_UrlRewriteImportExport
=======================================

[](#deployecommerce_urlrewriteimportexport)

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

What it does
------------

[](#what-it-does)

- **Export** — one click downloads the entire `url_rewrite` table as `url_rewrite_YYYY_MM_DD_HHmmss.csv`. CSV columns mirror the database columns exactly (read live from the schema, never hardcoded). Streamed row-by-row, so memory stays flat on large tables. No queues.
- **Import** — upload a CSV previously exported by this tool. Before any row is written:
    - the CSV header is validated against the live database columns; an unknown column aborts the import;
    - a safety backup of the current table is always written to `var/rewrites/url_rewrite_.csv`;
    - if you did not export a backup through this tool first, you are warned.
- **Import options** (admin-selectable, echoed back in the result for debug reports):
    - *Import mode* — Upsert / Skip duplicates / Fail on duplicate.
    - *ID handling* — Preserve `url_rewrite_id` from the CSV, or auto-assign new IDs.
    - *Truncate* — optional checkbox to empty the table first; requires an extra JS confirmation.
- **Result table** — after import, shows rows in file / imported / skipped (duplicates) / failed, plus the exact options used.

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

Install
-------

[](#install)

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

### Via a VCS / Packagist repository (deploy)

[](#via-a-vcs--packagist-repository-deploy)

```
composer require deployecommerce/module-url-rewrite-import-export:^1.0
bin/magento module:enable DeployEcommerce_UrlRewriteImportExport
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:flush
```

### Via a local path repository (development)

[](#via-a-local-path-repository-development)

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

```
"repositories": {
    "local-url-rewrite-import-export": {
        "type": "path",
        "url": "packages/module-url-rewrite-import-export",
        "options": { "symlink": true }
    }
}
```

```
composer require deployecommerce/module-url-rewrite-import-export:@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)
------------

[](#tests-pest)

The framework-free service classes (`HeaderValidator`, `FilenameGenerator`) are unit-tested with [PEST](https://pestphp.com). 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.

```
cd tests
composer install
./vendor/bin/pest
```

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

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance100

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community7

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

Unknown

Total

1

Last Release

0d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/254889?v=4)[Scott](/maintainers/ssx)[@ssx](https://github.com/ssx)

![](https://avatars.githubusercontent.com/u/2587545?v=4)[Nathan Chick](/maintainers/nathanchick)[@nathanchick](https://github.com/nathanchick)

---

Top Contributors

[![ssx](https://avatars.githubusercontent.com/u/254889?v=4)](https://github.com/ssx "ssx (1 commits)")

---

Tags

adobe-commerceexportimportmagentomagento2phpurl

### Embed Badge

![Health badge](/badges/deployecommerce-module-url-rewrite-import-export/health.svg)

```
[![Health](https://phpackages.com/badges/deployecommerce-module-url-rewrite-import-export/health.svg)](https://phpackages.com/packages/deployecommerce-module-url-rewrite-import-export)
```

###  Alternatives

[appwrite/server-ce

End to end backend server for frontend and mobile apps.

56.3k98.3k](/packages/appwrite-server-ce)[statamic/cms

The Statamic CMS Core Package

4.8k3.5M914](/packages/statamic-cms)[kimai/kimai

Kimai - Time Tracking

4.7k8.7k1](/packages/kimai-kimai)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

749284.3k35](/packages/civicrm-civicrm-core)[october/rain

October Rain Library

1581.7M73](/packages/october-rain)[filament/actions

Easily add beautiful action modals to any Livewire component.

1325.2M63](/packages/filament-actions)

PHPackages © 2026

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