tavp/tavphive

TAVPhive — billing & subscription SaaS for TAVP (Spark equivalent).

Maintainers

Package info

github.com/tavp-stack/tavphive

Type:tavpkit-module

pkg:composer/tavp/tavphive

Transparency log

Statistics

Installs: 6

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.1.0 2026-07-10 02:14 UTC

This package is auto-updated.

Last update: 2026-07-10 02:14:38 UTC


README

Module billing SaaS untuk TAVP. Buat yang mau bikin produk berlangganan.

Features

  • Subscriptions — Plans, trials, cancellation, upgrades
  • Invoicing — Auto-generated invoices, PDF export
  • Plan management — Free, pro, enterprise tiers
  • Webhook handling — Payment event processing
  • Revenue split — 80% developer, 20% platform

Payment gateways

Gateway Region Status
Stripe International Supported
PayPal International Supported
Midtrans Indonesia Supported
Xendit Indonesia Supported
mayar.id Indonesia Supported
Duitku Indonesia Supported
Flip Business Indonesia Supported
iPaymu Indonesia Supported

Requirements

  • PHP 8.3+
  • Phalcon 5.16+
  • tavp-core

Install

# Via tavp CLI
tavp module:install tavp/tavphive

# Via Composer
composer require tavp/tavphive

Quick start

use Tavp\Hive\Subscription;

// Create a subscription
$subscription = Subscription::create([
    'user_id' => $userId,
    'plan' => 'pro',
    'gateway' => 'stripe',
]);

// Check if active
if ($subscription->isActive()) {
    // User has access
}

Database tables

Table Description
subscriptions Active subscriptions
invoices Invoice history
plans Available plans
payments Payment transactions

Testing

composer test

Status

Part of 0.1.0 Genesis (ZeroVer 0.MINOR.PATCH). Basic subscriptions. Full features (invoicing, webhooks, multi-gateway) in 0.6.0.

License

MIT