LaravelPackages.net
Acme Inc.
Toggle sidebar
bytebeez/laravel-subscription-core

4
0
v1.0.0
About bytebeez/laravel-subscription-core

bytebeez/laravel-subscription-core is a Laravel package. It currently has 0 GitHub stars and 4 downloads on Packagist (latest version v1.0.0). Install it with composer require bytebeez/laravel-subscription-core. Discover more Laravel packages by bytebeez or browse all Laravel packages to compare alternatives.

Last updated

Laravel Subscription Core

A feature-based SaaS subscription engine for Laravel.

Laravel Subscription Core provides a flexible, usage-aware subscription system designed for modern multi-tenant SaaS applications. It enables you to define plans, attach feature limits, track usage, and manage subscription lifecycle without locking you into any specific billing provider.


πŸš€ Features

  • Feature-based plan limits
  • Usage tracking & metering
  • Trial support
  • Grace period support
  • Plan switching
  • Subscription renewal & cancellation
  • Resettable usage windows (daily / monthly)
  • Multi-tenant ready
  • Billing provider independent (Stripe, Razorpay, etc.)

πŸ“¦ Installation

Install via Composer:

composer require bytebeez/laravel-subscription-core

Laravel will automatically discover the package.


βš™οΈ Publish Assets

Publish configuration file:

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

Publish migrations:

php artisan vendor:publish --tag=subscription-migrations

Run migrations:

php artisan migrate

🧠 Core Concepts

Plans

Define pricing structure and billing cycle.

Features

Attach limits or toggles to plans such as:

  • Number of users
  • Appointments
  • API usage
  • Storage
  • Enabled modules

Subscriptions

Assigned to an organization and linked to a plan.

Usage Tracking

Automatically records consumption of feature limits.


πŸ—οΈ Example Usage

Check if an organization can use a feature:

app('subscription-core')->canUse($organization, 'appointments');

Record usage:

app('subscription-core')->record($organization, 'appointments');

πŸ”Œ Billing Ready

This package does NOT enforce any payment gateway.

You can integrate:

  • Stripe
  • Razorpay
  • PayPal
  • Offline billing

without modifying core subscription logic.


🏒 Multi-Tenant Support

The package is designed to work with organization-based SaaS systems.

You can configure your tenant model in:

config/subscription.php

🧩 Use Cases

  • SaaS ERP systems
  • Healthcare platforms
  • Queue management apps
  • AI tools
  • EdTech platforms
  • Marketplaces

πŸ› οΈ Compatibility

Supports:

  • Laravel 10
  • Laravel 11
  • Laravel 12

πŸ“œ License

MIT License

Comments