zainmalik/billforge 问题修复 & 功能扩展

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

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

zainmalik/billforge

最新稳定版本:1.0

Composer 安装命令:

composer require zainmalik/billforge

包简介

SaaS Subscription management package with multiple gateways, dynamic route blocking, and admin dashboard.

README 文档

README

A powerful, full-featured SaaS subscription management package for Laravel. It provides dynamic route protection, multiple gateway support, and a beautiful Admin Dashboard.

Features

  • Admin Dashboard: A modern TailwindCSS control panel for your subscriptions.
  • Multiple Gateways: Built-in support for Stripe, PayPal, and Authorize.net. Add credentials directly from the UI.
  • Subscription Tiers: Create unlimited subscription packages, link them to gateway plans (e.g., Stripe Price IDs).
  • Dynamic Route Blocking: Secure your app's routes. Assign access permissions via the admin dashboard, and use the included middleware to protect your SaaS features dynamically.

Installation

  1. Require the package locally (if developing) or via composer:
composer require zainmalik/billForge
  1. Publish the package assets and configuration:
php artisan vendor:publish --provider="Zain\BillForge\BillForgeServiceProvider"
  1. Run migrations:
php artisan migrate

Setup & Usage

1. Protect Routes

Add the middleware subscription.access to any routes you'd like to protect dynamically from the admin panel:

Route::get('/saas/premium-feature', [PremiumController::class, 'index'])
    ->middleware(['auth', 'subscription.access'])
    ->name('saas.feature');

Note: Users without an active subscription mapped to this route will be blocked.

2. Update User Model

Add the HasSubscriptions trait to your host application's User model (App\Models\User):

namespace App\Models;

use Illuminate\Foundation\Auth\User as Authenticatable;
use Zain\BillForge\Traits\HasSubscriptions;

class User extends Authenticatable
{
    use HasSubscriptions;
    
    // ...
}

3. Access the Admin Dashboard

Navigate to /admin/subscriptions in your application to access the modern control panel. From there, you can configure your Payment Gateways, set up Packages, and map them to standard application Routes.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-03-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固