PHPackages                             madbox-99/filament-woocommerce - 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. [Admin Panels](/categories/admin)
4. /
5. madbox-99/filament-woocommerce

ActiveLibrary[Admin Panels](/categories/admin)

madbox-99/filament-woocommerce
==============================

WooCommerce integration plugin for Filament v5 — sync WooCommerce products, categories, customers, and orders into any Laravel/Filament CRM via configurable model mapping. Multi-store capable.

v0.2.2(1mo ago)020MITPHPPHP ^8.3

Since Apr 23Pushed 1mo agoCompare

[ Source](https://github.com/MadBox-99/filament-woocommerce)[ Packagist](https://packagist.org/packages/madbox-99/filament-woocommerce)[ RSS](/packages/madbox-99-filament-woocommerce/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (6)Versions (5)Used By (0)

Filament WooCommerce
====================

[](#filament-woocommerce)

WooCommerce integration plugin for Filament v5. Pulls **products + categories**, **customers**, and **orders** from one or more WooCommerce stores into any Laravel/Filament CRM via **configurable model mapping**.

- Laravel 11 / 12 / 13
- Filament v4 / v5
- PHP 8.3+
- One-way sync: WooCommerce → host app
- Multi-store: manage several WooCommerce stores from one Filament panel
- Multi-tenant friendly: auto-populate `team_id` / `organization_id` / any tenant column on synced records

Installation
------------

[](#installation)

```
composer require madbox-99/filament-woocommerce
php artisan vendor:publish --tag=filament-woocommerce-config
php artisan vendor:publish --tag=filament-woocommerce-migrations
php artisan migrate
```

Register the plugin on your Filament panel:

```
// app/Providers/Filament/AdminPanelProvider.php
use Madbox99\FilamentWooCommerce\FilamentWooCommercePlugin;

$panel->plugins([
    FilamentWooCommercePlugin::make(),
]);
```

Configuration
-------------

[](#configuration)

Edit `config/filament-woocommerce.php` and point each entity at a host-app model:

```
'mappings' => [
    'products' => [
        'enabled' => true,
        'model' => \App\Models\Product::class,
        'syncer' => \Madbox99\FilamentWooCommerce\Sync\ProductSyncer::class,
        'field_map' => [
            'name' => 'name',
            'sku' => 'sku',
            'regular_price' => 'unit_price',
            // ...
        ],
    ],
    // product_categories, customers, orders …
],
```

Add the `HasWooMapping` trait to each mapped model:

```
use Madbox99\FilamentWooCommerce\Concerns\HasWooMapping;

final class Product extends Model
{
    use HasWooMapping;
}
```

`HasWooMapping` adds a polymorphic relation to the `woo_mappings` table — no extra columns required on your own models.

Multi-tenant apps
-----------------

[](#multi-tenant-apps)

If your host app scopes records by `team_id`, `organization_id`, `account_id`, …, tell the plugin which column to populate and the syncer will fill it on every new record it creates — and skip global scopes when resolving existing mappings, so queue workers can find records without an authenticated tenant context.

```
// config/filament-woocommerce.php
'tenant' => [
    'column' => 'team_id',              // null disables the feature (default)
    'model' => \App\Models\Team::class, // optional — renders a Select in the store form
    'label_column' => 'name',
    'bypass_global_scopes' => true,
],
```

Each store then stores its own `tenant_id`, assigned when you create the store in the UI. The syncer auto-populates `team_id = store.tenant_id` on newly created Products / Customers / Orders — but never overwrites an existing record's tenant.

Usage
-----

[](#usage)

### Add a store

[](#add-a-store)

Go to **WooCommerce → Stores** in your Filament panel and create a new store with the site URL, consumer key, and consumer secret from **WP Admin → WooCommerce → Settings → Advanced → REST API**.

Click **Test** to verify the connection.

### Sync

[](#sync)

From the panel: click **Sync now** on a store row.

From the CLI:

```
php artisan woo:sync                         # queue all active stores
php artisan woo:sync --store=1               # queue a single store
php artisan woo:sync --store=1 --entity=products
php artisan woo:sync --store=1 --sync        # run inline (no queue)
```

The scheduler can run sync automatically — enable it in config (on by default, hourly).

### Lookups

[](#lookups)

```
$product = Product::find(42);
$externalId = $product->wooExternalId(storeId: 1);
$mapping = $product->wooMappingFor(storeId: 1);
```

How mapping works
-----------------

[](#how-mapping-works)

1. Each remote record has a unique `external_id` from WooCommerce.
2. When the syncer persists a local record, it creates/updates a row in `woo_mappings` linking the remote ID ↔ the local model (polymorphic).
3. Re-syncing re-uses the existing mapping, so records are **updated** in place rather than duplicated.
4. Cross-entity links (e.g. order → customer, product → category) resolve via mapping lookups at sync time.

Testing
-------

[](#testing)

```
composer test
```

License
-------

[](#license)

MIT

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance90

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

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

Every ~0 days

Total

4

Last Release

47d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/72586295?v=4)[Zoltán Tamás Szabó](/maintainers/MadBox-99)[@MadBox-99](https://github.com/MadBox-99)

---

Top Contributors

[![MadBox-99](https://avatars.githubusercontent.com/u/72586295?v=4)](https://github.com/MadBox-99 "MadBox-99 (4 commits)")

---

Tags

laravelwordpresscrmecommercesyncwoocommercefilamentfilament-pluginwoo

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/madbox-99-filament-woocommerce/health.svg)

```
[![Health](https://phpackages.com/badges/madbox-99-filament-woocommerce/health.svg)](https://phpackages.com/packages/madbox-99-filament-woocommerce)
```

###  Alternatives

[openplain/filament-tree-view

Tree view for Filament resources - drop-in replacement for Table with drag-and-drop hierarchical data management

3621.1k](/packages/openplain-filament-tree-view)[caresome/filament-neobrutalism-theme

A neobrutalism theme for FilamentPHP admin panels

324.9k1](/packages/caresome-filament-neobrutalism-theme)[ercogx/laravel-filament-starter-kit

This is a Filament v5 Starter Kit for Laravel 13, designed to accelerate the development of Filament-powered applications.

441.7k](/packages/ercogx-laravel-filament-starter-kit)[inerba/filament-db-config

A Filament plugin for database-backed application settings and editable content, with caching and easy page generation.

3311.8k3](/packages/inerba-filament-db-config)[mradder/filament-logger

Audit logging, activity tracking, exports, alerts, and dashboards for Filament admin panels.

2210.5k](/packages/mradder-filament-logger)[harvirsidhu/filament-cards

A Filament-native cards plugin for organizing pages and resources into a card-based navigation hub.

105.3k](/packages/harvirsidhu-filament-cards)

PHPackages © 2026

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