Skip to content

SaaS Starter Example

A SaaS application with billing, teams, and multi-tenancy.

Features

  • User authentication (tavpid)
  • Team management (tavpkit)
  • Subscription billing (tavphive)
  • Admin panel (tavphub)
  • Multi-tenant data isolation

Quick Start

bash
tavp new my-saas
cd my-saas
tavp migrate
tavp serve

Modules Used

ModulePurpose
tavpidOTP login, JWT API auth
tavpkitTeam management, API tokens
tavphiveStripe/Midtrans billing
tavphubAdmin panel
tavp-cmsContent management

Routes

php
// Auth
$router->post('/login', [AuthController::class, 'login']);
$router->post('/register', [AuthController::class, 'register']);

// Teams
$router->get('/teams', [TeamController::class, 'index']);
$router->post('/teams', [TeamController::class, 'store']);

// Billing
$router->get('/billing', [BillingController::class, 'index']);
$router->post('/checkout', [CheckoutController::class, 'store']);

Config

php
// config/hive.php
return [
    'gateways' => [
        'stripe' => ['driver' => 'stripe', 'secret' => env('STRIPE_SECRET')],
    ],
];

Learn More

Released under the MIT License.