Subscriptionify is a gateway-agnostic Laravel package for managing subscription plans and feature quotas without coupling to a specific payment provider. It supports four feature types: Toggle (on/off access), Consumable (resettable quotas), Limit (freeable caps), and Metered (pay-per-use). Usage tracking is handled directly on any subscribable model via a trait. Optional overage billing is enabled by implementing a HasFunds contract that deducts from a balance you control, using arbitrary-precision math. The package also provides route middleware and Blade directives for access gating, lifecycle methods for subscription state transitions, and an Artisan command for expiring overdue subscriptions.

5m read timeFrom laravel-news.com
Post cover image
Table of contents
# Four feature types for different quota patterns# Usage tracking on the subscribable model# Direct grants independent of the plan# Optional overage and metered billing# Gating access with middleware and Blade# Lifecycle, events, and scheduled expiry
30.2K Impressions2 Comments