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

ActiveLibrary

aiarmada/filament-promotions
============================

A Filament v5 plugin for administering promotions provided by the AIArmada promotions package

v1.0.0(2w ago)00MITPHP

Since Mar 8Pushed 3d agoCompare

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

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

Filament Promotions
===================

[](#filament-promotions)

A Filament v5 plugin for managing promotional discounts in your admin panel.

Features
--------

[](#features)

- **Full CRUD** — Create, view, edit, and delete promotions
- **Rich Table** — Sortable, filterable promotion list with badges
- **Promotion Types** — Percentage, fixed amount, and Buy X Get Y
- **Usage Tracking** — Monitor promotion usage statistics
- **Owner Scoping** — Multi-tenant support out of the box
- **Stats Widget** — Dashboard overview of promotion metrics

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

[](#requirements)

- PHP 8.4+
- Laravel 12+
- Filament 5.0+
- aiarmada/promotions package

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

[](#installation)

```
composer require aiarmada/filament-promotions
```

Register the plugin in your Filament panel:

```
use AIArmada\FilamentPromotions\FilamentPromotionsPlugin;

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

Optionally publish the config:

```
php artisan vendor:publish --tag=filament-promotions-config
```

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

[](#configuration)

```
// config/filament-promotions.php
return [
    'navigation_group' => 'Marketing',

    'resources' => [
        'navigation_sort' => [
            'promotions' => 10,
        ],
    ],

    'tables' => [
        'poll' => null,
    ],

    'features' => [
        'widgets' => true,
    ],
];
```

Usage
-----

[](#usage)

### Managing Promotions

[](#managing-promotions)

The plugin provides a `PromotionResource` with:

- **List View** — Table with search, filters, and bulk actions
- **Create View** — Form to create new promotions
- **Edit View** — Update existing promotions
- **View View** — Detailed promotion information

### Promotion Types

[](#promotion-types)

The Filament-aware `PromotionType` enum includes:

TypeLabelIconColor`Percentage`Percentage Offreceipt-percentsuccess`Fixed`Fixed Amountcurrency-dollarinfo`BuyXGetY`Buy X Get Ygiftwarning### Stats Widget

[](#stats-widget)

Add the stats widget to your dashboard:

```
use AIArmada\FilamentPromotions\Widgets\PromotionStatsWidget;

public function panel(Panel $panel): Panel
{
    return $panel
        ->widgets([
            PromotionStatsWidget::class,
        ]);
}
```

Multi-tenancy
-------------

[](#multi-tenancy)

The resource respects owner scoping from the promotions package. Configure in `config/promotions.php`:

```
'features' => [
    'owner' => [
        'enabled' => true,
        'include_global' => true,
    ],
],
```

License
-------

[](#license)

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

###  Health Score

35

—

LowBetter than 81% of packages

Maintenance98

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

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

16d ago

### Community

Maintainers

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

### Embed Badge

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

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

PHPackages © 2026

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