saksh/easy-wallet

There is no license information available for the latest version (dev-main) of this package.

A simple wallet management package for Laravel

dev-main 2024-10-09 16:51 UTC

This package is not auto-updated.

Last update: 2024-12-19 15:55:32 UTC


README

Installation

composer require saksh/easy-wallet

Usage
use Saksh\EasyWallet\Wallet;

$balance = Wallet::getBalance($userId, 'USD');
Wallet::credit($userId, 100, 'USD', 'Initial deposit');
Wallet::debit($userId, 50, 'USD', 'Purchase');