PHPackages                             zainmalik/billforge - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Admin Panels](/categories/admin)
4. /
5. zainmalik/billforge

ActiveLibrary[Admin Panels](/categories/admin)

zainmalik/billforge
===================

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

1.0(3mo ago)03↓90.9%MITBladePHP ^8.1

Since Mar 30Pushed 3mo agoCompare

[ Source](https://github.com/zain660/billforge)[ Packagist](https://packagist.org/packages/zainmalik/billforge)[ RSS](/packages/zainmalik-billforge/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

BillForge Package
=================

[](#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
--------

[](#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
------------

[](#installation)

1. Require the package locally (if developing) or via composer:

```
composer require zainmalik/billForge
```

2. Publish the package assets and configuration:

```
php artisan vendor:publish --provider="Zain\BillForge\BillForgeServiceProvider"
```

3. Run migrations:

```
php artisan migrate
```

Setup &amp; Usage
-----------------

[](#setup--usage)

### 1. Protect Routes

[](#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

[](#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

[](#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.

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance82

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

91d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/112715327?v=4)[Zain Malik](/maintainers/imzainmalik)[@imzainmalik](https://github.com/imzainmalik)

---

Top Contributors

[![zain660](https://avatars.githubusercontent.com/u/45896755?v=4)](https://github.com/zain660 "zain660 (3 commits)")

### Embed Badge

![Health badge](/badges/zainmalik-billforge/health.svg)

```
[![Health](https://phpackages.com/badges/zainmalik-billforge/health.svg)](https://phpackages.com/packages/zainmalik-billforge)
```

###  Alternatives

[sebastienheyd/boilerplate

Laravel Boilerplate based on AdminLTE 3 with blade components, user management, roles, permissions, logs viewer, ...

29419.5k3](/packages/sebastienheyd-boilerplate)[slowlyo/owl-admin

基于 laravel、amis 开发的后台框架~

61114.7k26](/packages/slowlyo-owl-admin)[a2insights/filament-saas

Filament Saas for A2Insights

171.5k](/packages/a2insights-filament-saas)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
