PHPackages                             eightynine/filament-subscription - 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. [Payment Processing](/categories/payments)
4. /
5. eightynine/filament-subscription

ActiveLibrary[Payment Processing](/categories/payments)

eightynine/filament-subscription
================================

Tenant subscriptions, entitlements, usage tracking, and billing (Paddle + Tanzania custom providers) for Filament v4.

4.0.1(5mo ago)07proprietaryPHPPHP ^8.4

Since Jan 15Pushed 5mo agoCompare

[ Source](https://github.com/eighty9nine/filament-subscription)[ Packagist](https://packagist.org/packages/eightynine/filament-subscription)[ RSS](/packages/eightynine-filament-subscription/feed)WikiDiscussions 4.x Synced today

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

eightynine/filament-subscription
================================

[](#eightyninefilament-subscription)

Tenant subscriptions, entitlements, usage tracking, and billing UI for Filament v4 (Laravel 12).

> This plugin is installed in this project as a **path repository** (`plugins/eightynine/filament-subscription`).

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

[](#requirements)

- PHP 8.4+
- Laravel 12+
- Filament v4

Install (this repository)
-------------------------

[](#install-this-repository)

This project already includes the path repository entry in the root `composer.json`:

```
{
  "repositories": [
    {
      "type": "path",
      "url": "plugins/eightynine/filament-subscription",
      "options": { "symlink": true }
    }
  ]
}
```

And the package requirement:

```
composer require eightynine/filament-subscription
```

If you add/update code in the plugin, run:

```
composer dump-autoload
```

Publish config
--------------

[](#publish-config)

The package provides a config file you can publish:

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

This will publish to:

- `config/filament-subscription.php`

Run migrations
--------------

[](#run-migrations)

The plugin ships migrations under `plugins/eightynine/filament-subscription/database/migrations` and the service provider loads them automatically.

Run:

```
php artisan migrate
```

Set up features (entitlements)
------------------------------

[](#set-up-features-entitlements)

This plugin supports **code-defined features** (synced into the DB) and/or **seeded features**.

### Option A: Code-defined features (recommended)

[](#option-a-code-defined-features-recommended)

1. Create a registrar class in your app that implements `Eightynine\FilamentSubscription\Features\FeatureRegistrar` and returns an array of `FeatureDefinition` objects.
2. Register that registrar class in `config/filament-subscription.php`:

```
'feature_registrars' => [
  App\Billing\BillingFeatureRegistrar::class,
],
```

3. Sync the feature definitions into the database:

```
php artisan filament-subscription:sync-features
```

### Option B: Seeded features (quick start)

[](#option-b-seeded-features-quick-start)

This repository includes example seeders that create common quotas/modules:

```
php artisan db:seed --class=Database\\Seeders\\BillingFeatureSeeder
php artisan db:seed --class=Database\\Seeders\\BillingPlanSeeder
```

Set up plans (pricing)
----------------------

[](#set-up-plans-pricing)

Plans + entitlements live in the billing tables:

- `billing_plans`
- `billing_plan_prices`
- `billing_plan_feature_entitlements`

You can create/update these via:

- Seeders (see above)
- Your own admin UI/resources (if you expose the package models via Filament)

Ensure plugin views are included in Tailwind / Filament theme builds
--------------------------------------------------------------------

[](#ensure-plugin-views-are-included-in-tailwind--filament-theme-builds)

Filament pages/widgets in this plugin render Blade views under:

- `plugins/eightynine/filament-subscription/resources/views/**`

Since Tailwind v4 uses file scanning via `@source`, you must ensure those plugin view paths are included, otherwise Tailwind may purge classes used by the plugin UI.

Add this `@source` line to your Filament theme CSS:

- `resources/css/filament/app/theme.css`

```
@source '../../../../plugins/eightynine/filament-subscription/resources/views/**/*';
```

Then rebuild assets:

```
npm run build
```

Register the Filament plugin
----------------------------

[](#register-the-filament-plugin)

Register the plugin in your Filament panel provider (example):

```
use Eightynine\FilamentSubscription\FilamentSubscriptionPlugin;

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

### Where does the UI show?

[](#where-does-the-ui-show)

The `ManageSubscription` page is wired to appear in the **User Menu** (top-right profile dropdown) by default.

If you also want it in the sidebar navigation, set the config value:

- `filament-subscription.ui.manage_subscription.navigation_menu` =&gt; `true`

Tenant model setup (Company)
----------------------------

[](#tenant-model-setup-company)

This plugin is tenant-aware via `Filament::getTenant()`.

Your tenant model (commonly `App\Models\Company`) should:

- Use the trait: `Eightynine\FilamentSubscription\Traits\HasSubscription`
- Be configured as your Filament tenant model (panel tenancy)

The trait provides:

- `subscription()` morph-one relationship
- `getFeatureLimit($key)` and `canConsume($featureKey, $currentUsage)`
- Convenience helpers used by the billing UI:
    - `onTrial()`
    - `trialEndsAt()`
    - `$company->billablePlan` (accessor)

Webhooks
--------

[](#webhooks)

Webhook routes are loaded from:

- `plugins/eightynine/filament-subscription/routes/webhooks.php`

Configure your billing provider to send webhooks to the route(s) defined there.

Console commands
----------------

[](#console-commands)

The package registers (when running in console):

- `SyncBillingFeaturesCommand` (see `src/Console/Commands`)

You can list all commands with:

```
php artisan list
```

What the plugin provides
------------------------

[](#what-the-plugin-provides)

- Billing models (plans, subscriptions, invoices, payments, usage records)
- Policies for package resources/models
- A customer-facing Filament page:
    - `Eightynine\FilamentSubscription\Filament\Pages\ManageSubscription`
- Supporting Filament widgets (used on the page):
    - `InvoicesTable`
    - `PaymentsTable`
    - `CompanySubscriptionStats`

Usage
-----

[](#usage)

Open Filament, switch/select a tenant (Company), then use:

- User Menu �7 **Billing &amp; Subscription**

Tabs include:

- Status
- Pricing
- Invoices
- Payments
- Payment Methods

Notes / Troubleshooting
-----------------------

[](#notes--troubleshooting)

- **Views not found**: ensure `FilamentSubscriptionServiceProvider` loads views and you ran `composer dump-autoload` after changes.
- **Tenant is null**: the billing UI expects `Filament::getTenant()` to be set (panel tenancy configured).
- **Livewire component not found**: ensure the widget class exists under the namespace referenced in the Blade view, and autoload has been refreshed.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance70

Regular maintenance activity

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

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

2

Last Release

169d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/97078bfe6be687082f9d2e8cf2ba73dfaff4efb25cd4c7572c1ebd9c7e9fcbae?d=identicon)[eighty9nine](/maintainers/eighty9nine)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/eightynine-filament-subscription/health.svg)

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

###  Alternatives

[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

3991.8k](/packages/codewithdennis-larament)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3417.0k](/packages/duncanmcclean-statamic-cargo)[crumbls/layup

A visual page builder plugin for Filament 5 — Divi-style grid layouts with extensible widgets.

592.7k2](/packages/crumbls-layup)[ercogx/laravel-filament-starter-kit

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

461.7k](/packages/ercogx-laravel-filament-starter-kit)[slimani/filament-media-manager

A media manager plugin for Filament.

126.9k](/packages/slimani-filament-media-manager)

PHPackages © 2026

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