bavix/laravel-wallet
Virtual wallet system for Laravel: attach wallets to models, track balances, perform deposits/withdrawals/transfers, handle atomic transactions and events, and support multi-currency and bookkeeping. Includes docs, benchmarks, and upgrade guide.
swap, credit limits) for advanced use cases like loyalty programs or dynamic pricing.HasWalletFloat).Adopt if:
Look elsewhere if:
balance column with manual transaction checks).*"This package lets us build a scalable virtual wallet system in Laravel without reinventing the wheel. It handles:
Why now?
Risk: Requires Redis for atomic operations (but we already use it for caching)."*
*"Pros:
HasWallet, CanPay) reduce boilerplate.AtomicService handles concurrent transactions (e.g., ‘charge user + update inventory’).Cons:
Recommendation:
Start with core wallet functionality (deposits/withdrawals) for MVP, then add extensions (e.g., swap for dynamic pricing) as needed. The benchmark shows it’s production-ready for our scale.
Alternatives considered:
Next steps:
How can I help you explore Laravel packages today?