← Composer packages we ship

moffhub/billing

Feature-based billing for Laravel SaaS

0.1.1

Stripe-style billing, but for African SaaS M-Pesa, Paystack, Flutterwave, Pesapal with feature gating, usage metering and invoicing.

A Laravel billing engine built around how money actually moves in East and West Africa. Plans + features, M-Pesa-first connectors, atomic usage metering, mid-cycle proration, PDF invoicing without forcing you to retrofit Stripe-shaped abstractions onto rails that don't behave like Stripe.

What's in the box

  • Plans + feature gating ($user->canConsume('api_calls', 5))
  • Usage metering with atomic consume() / revert()
  • Subscription lifecycle: trials, grace periods, mid-cycle upgrades with proration
  • Invoicing: PDF generated on cycle close, archived to S3, optionally emailed
  • Pluggable payment providers M-Pesa (Daraja STK + B2B), Paystack, Flutterwave, Pesapal and a PaymentProvider interface for the fifth
  • #payments
  • #subscription
  • #laravel
  • #saas
  • #billing
  • #mpesa
  • #africa

Related packages