bytebeez/laravel-subscription-core 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bytebeez/laravel-subscription-core

最新稳定版本:v1.0.0

Composer 安装命令:

composer require bytebeez/laravel-subscription-core

包简介

README 文档

README

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

统计信息

  • 总下载量: 4
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-02-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固