PHPackages                             aiarmada/filament-cart - 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. aiarmada/filament-cart

ActiveLibrary[Admin Panels](/categories/admin)

aiarmada/filament-cart
======================

A comprehensive Filament admin interface for managing shopping carts created by the AIArmada Cart package

v1.4.7(5mo ago)0931MITPHPPHP ^8.4

Since Nov 6Pushed 1mo agoCompare

[ Source](https://github.com/AIArmada/filament-cart)[ Packagist](https://packagist.org/packages/aiarmada/filament-cart)[ Docs](https://github.com/aiarmada/commerce)[ RSS](/packages/aiarmada-filament-cart/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (34)Used By (1)

Filament Cart
=============

[](#filament-cart)

Filament admin panel integration for `aiarmada/cart`. Provides normalized cart data resources, condition management, and real-time synchronization for high-volume commerce operations.

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

[](#requirements)

- PHP 8.4+
- Laravel 12+
- Filament 5+
- aiarmada/cart

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

[](#installation)

```
composer require aiarmada/filament-cart
```

Register the plugin in your Filament panel provider:

```
use AIArmada\FilamentCart\FilamentCartPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        ->plugins([
            FilamentCartPlugin::make(),
        ]);
}
```

Publish the configuration (optional):

```
php artisan vendor:publish --tag="filament-cart-config"
```

Resources
---------

[](#resources)

The plugin registers four Filament resources under the **E-Commerce** navigation group:

ResourceModelPurposeCarts`Cart`View normalized cart snapshotsCart Items`CartItem`Browse individual line itemsCart Conditions`CartCondition`View conditions applied to cartsConditions`Condition`Manage reusable condition templates### Cart Resource

[](#cart-resource)

Read-only resource displaying cart snapshots with:

- Instance filtering (default, wishlist, quote, layaway)
- Item and condition counts
- Subtotal and total calculations
- Metadata search

### Cart Item Resource

[](#cart-item-resource)

Read-only resource for line item analysis:

- Price and quantity filters
- Attribute inspection
- Parent cart navigation
- JSON-searchable metadata

### Cart Condition Resource

[](#cart-condition-resource)

Read-only resource showing applied conditions:

- Type badges (discount, fee, tax, shipping)
- Target visualization (subtotal, total, item)
- Value display (percentage or fixed)
- Calculation order

### Condition Resource

[](#condition-resource)

Full CRUD for reusable condition templates:

- Create discount, tax, fee, and shipping conditions
- Configure dynamic rules with factory keys
- Set global auto-apply behavior
- Manage condition ordering

Widget
------

[](#widget)

The `CartStatsWidget` displays key metrics on your dashboard:

- Active cart count
- Total cart items
- Total cart value

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

[](#configuration)

```
// config/filament-cart.php

return [
    'navigation_group' => 'E-Commerce',
    'polling_interval' => 30,
    'enable_global_conditions' => true,
    'dynamic_rules_factory' => \AIArmada\Cart\Services\BuiltInRulesFactory::class,

    'synchronization' => [
        'queue_sync' => false,
        'queue_connection' => 'default',
        'queue_name' => 'cart-sync',
    ],
];
```

Event Synchronization
---------------------

[](#event-synchronization)

The plugin automatically syncs cart state via event listeners:

- `SyncCartOnEvent` — Creates/updates normalized records
- `ApplyGlobalConditions` — Auto-applies global conditions
- `CleanupSnapshotOnCartMerged` — Handles cart merge cleanup

Dynamic Conditions
------------------

[](#dynamic-conditions)

Create conditions with rule-based application:

```
use AIArmada\Cart\Models\Condition;

Condition::create([
    'name' => 'bulk_discount',
    'display_name' => '10% Bulk Discount',
    'type' => 'discount',
    'target' => 'cart@cart_subtotal/aggregate',
    'value' => '-10%',
    'rules' => [
        'factory_keys' => ['min-items', 'total-at-least'],
        'context' => ['min' => 3, 'amount' => 10000],
    ],
    'is_active' => true,
    'is_global' => true,
]);
```

Actions
-------

[](#actions)

Filament actions for cart operations:

- `ApplyConditionAction` — Apply a condition template to a cart
- `RemoveConditionAction` — Remove a condition from a cart

Testing
-------

[](#testing)

```
./vendor/bin/pest tests/src/FilamentCart --parallel
```

License
-------

[](#license)

MIT License. See [LICENSE](LICENSE) for details.

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance81

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity64

Established project with proven stability

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 ~4 days

Recently: every ~30 days

Total

33

Last Release

55d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/726da4efcb731bc0ebcdd0b7ce64759e1f8dd63f6f771eab335458f6a2f2d3af?d=identicon)[sairiz](/maintainers/sairiz)

### Embed Badge

![Health badge](/badges/aiarmada-filament-cart/health.svg)

```
[![Health](https://phpackages.com/badges/aiarmada-filament-cart/health.svg)](https://phpackages.com/packages/aiarmada-filament-cart)
```

###  Alternatives

[filament/spatie-laravel-settings-plugin

Filament support for `spatie/laravel-settings`.

1092.4M73](/packages/filament-spatie-laravel-settings-plugin)[awcodes/filament-quick-create

Plugin for Filament Admin that adds a dropdown menu to the header to quickly create new items.

246177.6k7](/packages/awcodes-filament-quick-create)[guava/filament-knowledge-base

A filament plugin that adds a knowledge base and help to your filament panel(s).

206120.5k1](/packages/guava-filament-knowledge-base)[ralphjsmit/laravel-filament-seo

A package to combine the power of Laravel SEO and Filament Admin.

15398.7k10](/packages/ralphjsmit-laravel-filament-seo)[geo-sot/filament-env-editor

Access .env file though Filament admin panel

2432.3k1](/packages/geo-sot-filament-env-editor)[inerba/filament-db-config

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

329.1k](/packages/inerba-filament-db-config)

PHPackages © 2026

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