PHPackages                             laravel-afterburner/subscriptions - 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. laravel-afterburner/subscriptions

ActiveLibrary[Payment Processing](/categories/payments)

laravel-afterburner/subscriptions
=================================

Stripe subscription billing for Afterburner applications

1.7.4(1mo ago)021↓86.7%MITPHPPHP ^8.2

Since May 29Pushed 1mo agoCompare

[ Source](https://github.com/laravel-afterburner/subscriptions)[ Packagist](https://packagist.org/packages/laravel-afterburner/subscriptions)[ RSS](/packages/laravel-afterburner-subscriptions/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (14)Versions (21)Used By (0)

Afterburner Subscriptions Package
=================================

[](#afterburner-subscriptions-package)

Stripe subscription billing for Laravel Afterburner Jetstream. Each entity is the billable customer.

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

[](#installation)

### Local Development Setup

[](#local-development-setup)

For local development, add the package as a path repository:

```
composer config repositories.afterburner-subscriptions path ../afterburner-subscriptions
composer require laravel-afterburner/subscriptions:@dev
```

### Quick Install

[](#quick-install)

```
composer require laravel-afterburner/subscriptions
php artisan afterburner:subscriptions:install
```

Add `Afterburner\Subscriptions\Concerns\HasSubscriptions` to `App\Models\Team`.

Register `EnsureSubscriptionActive` on authenticated web routes (middleware alias: `subscription.active`).

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

[](#documentation)

See [INSTRUCTIONS.md](INSTRUCTIONS.md) for the full build specification and host integration checklist.

Features
--------

[](#features)

- 30-day auto trial on new entities (full product access during trial; no card required)
- Monthly and annual plans (admin-managed, Stripe-synced)
- Plan entitlements (limits + feature slugs) via `PlanEntitlements` / `$team->entitlements()`
- `SubscriptionEntitlementGate` for add-on packages to gate features by plan
- Promotion codes (admin-managed, Stripe-synced, optional at checkout)
- Entity subscription manager with Stripe Checkout and billing portal
- Invoice history via Cashier
- Hard app block when subscription inactive
- Billing notification emails to owner, president, and treasurer
- Audit log entries for subscribe, payment failed, and cancellation (when host `AuditService` is available)

Entitlement gating for add-on packages
--------------------------------------

[](#entitlement-gating-for-add-on-packages)

Add-on packages (documents, voting, etc.) should **not** hard-require this package. Use `SubscriptionEntitlementGate` at routes, policies, navigation, and mutation points:

```
use Afterburner\Subscriptions\Support\SubscriptionEntitlementGate;

// Feature slug check (allows during trial, when disabled, or when not installed)
SubscriptionEntitlementGate::allows($team, 'documents');

// Numeric limit check
SubscriptionEntitlementGate::withinLimit($team, 'max_storage_gb', $usedGb);
```

On teams using `HasSubscriptions`, convenience methods are also available:

```
$team->canAccessEntitlement('documents');
$team->withinAccessibleEntitlementLimit('max_storage_gb', $usedGb);
```

Route middleware (alias registered by this package):

```
Route::middleware('subscription.entitlement:documents')->group(...);
```

Laravel gate for policies:

```
$user->can('teamEntitlement', [$team, 'documents']);
```

Register each add-on's slug in the host `config/afterburner-subscriptions.php` → `known_feature_slugs` so admins can assign features to plans.

**Trial behavior:** With `trial_full_access` enabled (default), entities on a generic trial bypass entitlement checks so they can explore all features. After trial, access is enforced by the subscribed plan.

**App-wide block:** `EnsureSubscriptionActive` (host registers) blocks the entire app when billing is inactive. Entitlement checks are per-feature and complementary.

License
-------

[](#license)

MIT License

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance90

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

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

20

Last Release

48d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c89a4bde39061db2498ed98e084ccab43ec033d496994ade8a8beed1b0bd0450?d=identicon)[FoxRocks76](/maintainers/FoxRocks76)

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/laravel-afterburner-subscriptions/health.svg)

```
[![Health](https://phpackages.com/badges/laravel-afterburner-subscriptions/health.svg)](https://phpackages.com/packages/laravel-afterburner-subscriptions)
```

###  Alternatives

[nasirkhan/laravel-starter

A CMS like modular Laravel starter project.

1.4k2.7k](/packages/nasirkhan-laravel-starter)[duncanmcclean/statamic-cargo

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

3518.3k](/packages/duncanmcclean-statamic-cargo)[team-nifty-gmbh/tall-datatables

Server-side rendered datatables for Laravel and Livewire

1320.9k4](/packages/team-nifty-gmbh-tall-datatables)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.4k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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