Download the PHP package aniket/laravel-wallet-system without Composer
On this page you can find all versions of the php package aniket/laravel-wallet-system. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aniket/laravel-wallet-system
More information about aniket/laravel-wallet-system
Files in aniket/laravel-wallet-system
Package laravel-wallet-system
Short Description Flexible Laravel wallet system
License MIT
Informations about the package laravel-wallet-system
Laravel Wallet System
A Laravel Wallet System package for managing user balances, deposits, withdrawals, credits, debits, and refunds inside any Laravel application.
This package makes it simple to implement a wallet system in Laravel for e-commerce, SaaS platforms, financial apps, or any system requiring digital wallet functionality.
๐ Features of Laravel Wallet
- ๐ณ Credit, debit, and refund support out of the box
- ๐ Tracks all transactions and transaction history
- ๐ Uses Laravel Cache locks for safe concurrent updates
- โ๏ธ Fully configurable (tables, balance column, lock duration)
- ๐งฑ Extendable schema: modify the
transactionstable if needed - ๐พ Works with relational & non-relational databases
- ๐งช Easy integration with existing
userstable
- ๐ณ Credit, debit, and refund support
- ๐ Tracks transactions and transaction history
- ๐ Uses Laravel Cache locks for safe concurrent updates
- โ๏ธ Fully configurable
- ๐งฑ Extendable schema: you can modify the
transactionstable - ๐พ Compatible with relational and non-relational DBs
- ๐งช Easy integration with existing
userstable
๐ฆ Installation
โ๏ธ Wallet Configuration
You can edit the configuration in config/wallet.php:
โ๏ธ Configuration Options
-
users_table
Specify your users table name. -
wallet_balance_column
Column in the users table for wallet balance. -
lock_duration
Time in seconds to lock a wallet during updates (prevents race conditions). -
default_balance
Initial balance for new users.
๐จโ๐ป Usage Example
For migrating the tables.
In User.php:
๐ณ Wallet Operations
โ Credit Wallet
Credits money to the user's wallet.
๐ Debit Wallet
Debits money from the user's wallet if sufficient balance is available.
๐ธ Refund Wallet
Refunds money back into the wallet (acts like a credit, but marked with metadata).
๐ Why Use Laravel Wallet System?
- Simplifies wallet implementation in Laravel applications
- Prevents race conditions with cache-based locks
- Easy setup with migrations & configuration
- Works seamlessly for:
- Multi-vendor systems
- Fintech applications
- E-commerce platforms
- Gaming credits
- Loyalty programs