Download the PHP package zainmalik/billforge without Composer
On this page you can find all versions of the php package zainmalik/billforge. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download zainmalik/billforge
More information about zainmalik/billforge
Files in zainmalik/billforge
Package billforge
Short Description SaaS Subscription management package with multiple gateways, dynamic route blocking, and admin dashboard.
License MIT
Informations about the package billforge
BillForge Package
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:
-
Publish the package assets and configuration:
- Run migrations:
Setup & Usage
1. Protect Routes
Add the middleware subscription.access to any routes you'd like to protect dynamically from the admin panel:
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):
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.