PHPackages                             tanjil/woo-laravel-migrator - 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. [Database &amp; ORM](/categories/database)
4. /
5. tanjil/woo-laravel-migrator

ActiveLibrary[Database &amp; ORM](/categories/database)

tanjil/woo-laravel-migrator
===========================

Import and synchronize WooCommerce stores into Laravel applications through the WooCommerce REST API.

v1.0.0(1mo ago)01↓75%MITPHPPHP ^8.2

Since Jul 16Pushed 1mo agoCompare

[ Source](https://github.com/tanjilahmed7/woo-laravel-migrator)[ Packagist](https://packagist.org/packages/tanjil/woo-laravel-migrator)[ Docs](https://github.com/tanjilahmed7/woo-laravel-migrator)[ RSS](/packages/tanjil-woo-laravel-migrator/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (9)Versions (2)Used By (0)

woo-laravel-migrator
====================

[](#woo-laravel-migrator)

Import and synchronize a WooCommerce store into a Laravel application through the WooCommerce REST API — no WordPress code inside Laravel, no direct database access to the shop.

[![License: MIT](https://camo.githubusercontent.com/08cef40a9105b6526ca22088bc514fbfdbc9aac1ddbf8d4e6c750e3a88a44dca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667)](LICENSE)

Features
--------

[](#features)

- Full catalog import: products, variations, taxonomy, attributes, images
- Customer and order import with line items, addresses, shipping/tax/fee lines
- Coupons, refunds, reviews, order notes, downloadable files
- **Resumable, idempotent, queued** imports with checkpointing
- Safe image downloads (SSRF guard, MIME validation, deduplication)
- Local image storage — images work even when WordPress is offline
- Hybrid schema: structured columns + `meta_data` JSON + optional `raw_payload`
- Custom table prefix (`wc_` by default)
- Extension adapter system for WooCommerce plugins

Requirements
------------

[](#requirements)

- PHP 8.2+
- Laravel 11, 12, or 13
- WooCommerce REST API (`wc/v3`)

Quick start
-----------

[](#quick-start)

```
composer require tanjil/woo-laravel-migrator

php artisan woo:install
php artisan migrate
php artisan woo:test
php artisan queue:work --queue=woo-imports   # for queued imports
php artisan woo:import
```

For small stores or quick tests:

```
php artisan woo:import --sync
```

Documentation
-------------

[](#documentation)

**[Full usage guide → docs/USAGE.md](docs/USAGE.md)**

Covers installation, configuration, Docker, importing, syncing, images, using data in your app, commands, and troubleshooting.

### Common commands

[](#common-commands)

```
php artisan woo:install              # interactive setup
php artisan woo:doctor             # diagnostics
php artisan woo:test               # test API connection
php artisan woo:import             # full import (queued)
php artisan woo:import --sync      # run in-process
php artisan woo:import --fresh --force
php artisan woo:sync               # incremental sync
php artisan woo:status             # import progress
php artisan woo:connection:reset --force
```

### Environment variables

[](#environment-variables)

```
WOO_MIGRATOR_URL=https://shop.example.com
WOO_MIGRATOR_CONSUMER_KEY=ck_xxxx
WOO_MIGRATOR_CONSUMER_SECRET=cs_xxxx
WOO_MIGRATOR_TABLE_PREFIX=wc_
WOO_MIGRATOR_QUEUE=woo-imports
WOO_MIGRATOR_DISK=public
APP_URL=http://localhost:8000        # must match how you access the app
```

Images
------

[](#images)

Product images are downloaded to Laravel storage. After download, `wc_product_images.src_url` contains the **local storage URL**, not the WordPress URL.

```
php artisan storage:link
```

Set `APP_URL` correctly (including port) so image URLs resolve.

Docker
------

[](#docker)

When Laravel runs in Docker, `WOO_MIGRATOR_URL` must be reachable from inside the container. See [docs/USAGE.md#docker](docs/USAGE.md#docker).

Development
-----------

[](#development)

```
composer install
vendor/bin/phpunit
```

A demo WooCommerce store is available under `dev/demo-store/`.

License
-------

[](#license)

MIT — see [LICENSE](LICENSE).

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance90

Actively maintained with recent releases

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

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

45d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/247ae5227f52864f89490f4daaffb8d33b6791570469f9b26e30fed5e8c7a3a5?d=identicon)[tanjilahmed7](/maintainers/tanjilahmed7)

---

Top Contributors

[![tanjilahmed7](https://avatars.githubusercontent.com/u/8897830?v=4)](https://github.com/tanjilahmed7 "tanjilahmed7 (2 commits)")

---

Tags

laravelwordpressmigrationimportsyncwoocommerce

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tanjil-woo-laravel-migrator/health.svg)

```
[![Health](https://phpackages.com/badges/tanjil-woo-laravel-migrator/health.svg)](https://phpackages.com/packages/tanjil-woo-laravel-migrator)
```

###  Alternatives

[laravel/scout

Laravel Scout provides a driver based solution to searching your Eloquent models.

1.7k59.5M714](/packages/laravel-scout)[spatie/laravel-medialibrary

Associate files with Eloquent models

6.2k47.7M733](/packages/spatie-laravel-medialibrary)[flat3/lodata

OData v4.01 Producer for Laravel

101362.9k](/packages/flat3-lodata)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k17.6M165](/packages/laravel-pulse)[psalm/plugin-laravel

Psalm plugin for Laravel

3365.5M359](/packages/psalm-plugin-laravel)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

1.0k2.5M152](/packages/roots-acorn)

PHPackages © 2026

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