PHPackages                             sakshsky/saksh-wallet - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. sakshsky/saksh-wallet

ActiveLibrary[Payment Processing](/categories/payments)

sakshsky/saksh-wallet
=====================

A simple wallet system for Laravel applications

v1.0.0(1y ago)04MITPHPPHP ^8.2CI failing

Since May 12Pushed 12mo ago1 watchersCompare

[ Source](https://github.com/sakshsky/saksh-wallet)[ Packagist](https://packagist.org/packages/sakshsky/saksh-wallet)[ RSS](/packages/sakshsky-saksh-wallet/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Saksh Wallet for Laravel
========================

[](#saksh-wallet-for-laravel)

A simple and performant wallet system for Laravel applications, using two tables to manage transactions and balances.

Installation
------------

[](#installation)

1. Install via Composer:

    ```
    composer require sakshsky/saksh-wallet
    ```
2. Publish and run migrations:

    ```
    php artisan vendor:publish --tag=saksh-wallet-migrations
    php artisan migrate
    ```

    This creates two tables (`wallet_transactions` and `balances`) via a single migration.

Usage
-----

[](#usage)

```
use Saksh\Wallet\Services\SakshWallet;

$wallet = app('saksh-wallet');
$userId = 1;

// Set admin email (optional)
$wallet->setAdmin('admin@example.com');

// Credit an amount
echo $wallet->addFunds($userId, 500, 'USD', 'ref123', 'Salary payment');
// Output: Credited 500 USD. New balance is 500

// Debit an amount with a fee
echo $wallet->deductFunds($userId, 200, 'USD', 'ref124', 'Grocery shopping', 5);
// Output: Debited 200 USD. New balance is 295

// Get balance
$balance = $wallet->getBalance($userId, 'USD');
print_r($balance);
// Output: ['user_id' => 1, 'currency' => 'USD', 'balance' => 295]

// Get balance summary
$summary = $wallet->sakshGetBalanceSummary($userId);
print_r($summary);
// Output: ['user_id' => 1, 'balance' => ['USD' => 295]]
```

Database Structure
------------------

[](#database-structure)

- **`wallet_transactions`**: Stores transaction history (credits and debits).
- **`balances`**: Stores current balances for each user and currency.

Commands
--------

[](#commands)

- Verify wallet integrity: ```
    php artisan saksh-wallet:verify
    ```

Testing
-------

[](#testing)

Run the tests:

```
vendor/bin/phpunit
```

Contributing
------------

[](#contributing)

Contributions are welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for details.

Repository
----------

[](#repository)

Find the source code at .

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](LICENSE).

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance50

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

365d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d59b51b89c678e3903c93b00ec8bea8d90dbab11391ce844b1c3cb476bc3f10e?d=identicon)[sakshsky](/maintainers/sakshsky)

---

Top Contributors

[![sakshsky](https://avatars.githubusercontent.com/u/210330406?v=4)](https://github.com/sakshsky "sakshsky (6 commits)")

---

Tags

laravelpaymenttransactionswalletbalance

### Embed Badge

![Health badge](/badges/sakshsky-saksh-wallet/health.svg)

```
[![Health](https://phpackages.com/badges/sakshsky-saksh-wallet/health.svg)](https://phpackages.com/packages/sakshsky-saksh-wallet)
```

###  Alternatives

[021/laravel-wallet

Reliable and flexible wallet system for Laravel

2785.2k](/packages/021-laravel-wallet)[sebdesign/laravel-viva-payments

A Laravel package for integrating the Viva Payments gateway

4845.9k](/packages/sebdesign-laravel-viva-payments)[henryejemuta/laravel-monnify

A laravel package to seamlessly integrate monnify api within your laravel application

132.1k](/packages/henryejemuta-laravel-monnify)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
