masterix21 / laravel-entitlements
PublicSimple and flexible entitlement management for Laravel applications, with support for plans, features, limits, and usage tracking.
Laravel Entitlements is a subscription and usage management system for Laravel applications. It helps developers build SaaS products by handling the complex logic of subscription plans, customer licenses, and resource consumption tracking. Users can create different plan types (like monthly or yearly), define what resources each plan includes (such as device slots, API tokens, or user seats), and the system automatically tracks how customers use their entitlements. The package supports two tracking methods: slot-based for things that are held individually, and pool-based for shared resources that drain as they're used. It also handles plan transitions when customers upgrade or downgrade, with options to apply changes immediately or at the end of their billing period. An optional admin panel is included for managing plans and viewing customer subscriptions.
How It Works
You're building a SaaS app and need to track customer subscriptions, usage limits, and plan changes without reinventing the wheel.
You create a simple list of what you want to track—like devices, AI tokens, or user seats—and choose how each one should be managed.
You set up plans like 'Pro Monthly' or 'Business Yearly', deciding how many of each entitlement type each plan includes.
When someone signs up, you assign them a plan and the system automatically creates their licenses with the correct limits.
For things like devices or seats, each one is counted individually until released.
For things like API calls or tokens, a shared pool drains down as everyone uses it.
When someone wants to upgrade or downgrade, you can make the change immediately or schedule it for their next billing date.
Your subscription business is fully operational with automatic tracking, plan changes, and usage monitoring—all handled for you.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.