TenantCore SaaS
Multi-tenant subscription management platform with automated billing, usage metering, and tenant isolation.
active
Overview
TenantCore is a multi-tenant SaaS framework that provides complete subscription management, usage-based billing, tenant data isolation, and white-label capabilities.
The platform supports database-per-tenant isolation with automatic provisioning, subscription lifecycle management with Stripe integration, usage metering with configurable thresholds, and a comprehensive admin console for platform operators.
Engineered to support 500+ active tenants with zero cross-contamination guarantees.
The platform supports database-per-tenant isolation with automatic provisioning, subscription lifecycle management with Stripe integration, usage metering with configurable thresholds, and a comprehensive admin console for platform operators.
Engineered to support 500+ active tenants with zero cross-contamination guarantees.
API Throughput
600 req/s
Total DB Size
120 GB
Total Users
75000 users
Uptime Target
99.95 %
STACK
Laravel
PHP
MySQL
Redis
Tailwind CSS
Livewire
Stripe
Docker
Nginx
Laravel Sanctum
Spatie Permissions
Architecture
SERVICES
- Tenant Manager
- Subscription Engine
- Usage Meter
- Billing Processor
- White-Label Engine
DATA FLOWS
- Signup → Tenant Provisioning → Onboarding → Subscription Activation
- Usage Event → Meter Aggregation → Threshold Check → Notification/Billing
INTEGRATIONS
- Stripe Billing
- SendGrid
- Cloudflare DNS API
- OAuth Providers
DATA STORES
- MySQL (Central)
- MySQL (Per-Tenant)
- Redis (Sessions/Cache)
- S3 (Tenant Assets)
System Interfaces
No interfaces uploaded for this project.
Technology Stack
LA
Laravel
framework
PH
PHP
language
MY
MySQL
database
RE
Redis
cache
TA
Tailwind CSS
frontend
LI
Livewire
framework
ST
Stripe
payment
DO
Docker
devops
NG
Nginx
devops
LA
Laravel Sanctum
auth
SP
Spatie Permissions
auth
Metrics
API Throughput
600
req/s
Total DB Size
120
GB
Total Users
75000
users
Uptime Target
99.95
%
Integrations
4
Auth Model
Multi-Tenant RBAC
Case Study
Challenge
Build a platform that allows rapid deployment of white-labeled SaaS applications with proper tenant isolation, automated billing, and self-service management.
Solution
- Database-per-tenant isolation with automatic schema migration
- Automated provisioning pipeline for new tenant onboarding
- Stripe-powered billing with usage-based and subscription models
- White-label engine with custom domains and branding per tenant
Results
- 500+ active tenants supported
- Zero cross-tenant data leakage incidents
- Average tenant provisioning time: 12 seconds
- 99.95% platform uptime
Engineering Notes
Multi-Tenancy Strategy
- Database-per-tenant for data isolation
- Central database for tenant registry and billing
- Middleware-based tenant resolution (subdomain + custom domain)
- Automatic migration runner for tenant schema updates
Billing Architecture
- Stripe Webhooks with idempotent processing
- Usage aggregation via scheduled commands
- Proration handling for plan changes
- Dunning management for failed payments