zainmalik/billforge
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
- Require the package locally (if developing) or via composer:
composer require zainmalik/billForge
- Publish the package assets and configuration:
php artisan vendor:publish --provider="Zain\BillForge\BillForgeServiceProvider"
- 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.
zainmalik/billforge 适用场景与选型建议
zainmalik/billforge 是一款 基于 Blade 开发的 Composer 扩展包,目前已累计 3 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 03 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 zainmalik/billforge 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 zainmalik/billforge 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 28
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-30