emeroid/laravel-billing-core
Driver-based, multi-gateway billing for Laravel with a fluent API for one-time payments and subscriptions. Supports Paystack and PayPal, plan swapping, grace-period cancellation, dunning via webhooks, events, and a Billable trait for your User model.
.env.Adopt When:
Look Elsewhere If:
"This package lets us launch subscriptions in weeks instead of months by plugging in Paystack/PayPal with a single config change. It handles the boring but critical stuff—like failed payments, plan upgrades, and compliance events—so our team can focus on growing revenue, not debugging billing code. The MIT license and driver-based design mean we can pivot gateways without rewriting logic, and the event system gives us visibility into churn risks. For a one-time integration cost, it’s a force multiplier for monetization."
Key Metrics to Track:
*"This is a batteries-included Laravel billing layer that abstracts away gateway-specific quirks. Here’s why it’s worth adopting:
.env—no refactoring.subscribe(), cancel(), swapPlan(), and dunning (e.g., invoice.payment_failed → past_due status).SubscriptionStarted, PlanSwapped, etc., for analytics or workflows (e.g., trigger onboarding emails on upgrade).\Emeroid\Billing\Contracts\Billable to your User model to auto-generate billing fields (e.g., subscription_id, current_period_end).Tradeoffs:
php artisan migrate after install.Proposal:
Alternatives Considered:
Next Steps:
past_due notifications)."*How can I help you explore Laravel packages today?