PHPackages                             nobelatunje/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. nobelatunje/wallet

ActiveProject[Utility &amp; Helpers](/categories/utility)

nobelatunje/wallet
==================

Wallet - A simple Laravel Wallet Package

101655PHP

Since Jun 4Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Atunje/wallet)[ Packagist](https://packagist.org/packages/nobelatunje/wallet)[ RSS](/packages/nobelatunje-wallet/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

Wallet
======

[](#wallet)

A simple laravel package for wallet implementation.

This package can basically be plugged into a laravel project and it will handle wallet transactions. It allows for a user to have multiple wallets that can be given different names.

### How to install

[](#how-to-install)

Install via composer

```
$ composer install nobelatunje/wallet

```

Copy the database migrations to your migrations folder and run

```
$ php artisan migrate

```

### To create a wallet

[](#to-create-a-wallet)

```
$wallet = Wallet::create($user_id, "Car Savings Wallet");
```

### To get user's wallets

[](#to-get-users-wallets)

```
$wallet = $this->hasMany(Wallet::class, 'user_id');
```

### To credit a wallet

[](#to-credit-a-wallet)

```
$wallet->credit(2000, "Payment for order #849494");
```

### To debit a wallet

[](#to-debit-a-wallet)

```
$wallet->debit(1000, "Purchase of airtime");
```

### To reverse a transaction

[](#to-reverse-a-transaction)

```
$wallet = Wallet::find(2);
$transaction = Transaction::find(3);

$wallet->reverseTransaction($transaction);
```

### To view wallet transactions

[](#to-view-wallet-transactions)

```
Wallet::find(2)->transactions();
```

### To retrieve wallets

[](#to-retrieve-wallets)

```
Wallet::all();
```

### To delete a wallet

[](#to-delete-a-wallet)

```
Wallet::find(2)->delete();
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/82bf25b377d2e62c977b45b7665300ef8117afe9ed26fe24bd2449bd15ffb2a0?d=identicon)[nobelatunje](/maintainers/nobelatunje)

---

Top Contributors

[![Atunje](https://avatars.githubusercontent.com/u/12198695?v=4)](https://github.com/Atunje "Atunje (36 commits)")

### Embed Badge

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

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

###  Alternatives

[symfony/polyfill-php84

Symfony polyfill backporting some PHP 8.4+ features to lower PHP versions

13274.8M132](/packages/symfony-polyfill-php84)[odolbeau/phone-number-bundle

Integrates libphonenumber into your Symfony application

24910.3M11](/packages/odolbeau-phone-number-bundle)[jwadhams/json-logic-php

Build rules with complex comparisons and boolean operators, serialized as JSON, and execute them in PHP

1641.7M6](/packages/jwadhams-json-logic-php)[zumba/swivel

Strategy driven feature toggles

209135.7k5](/packages/zumba-swivel)[konnco/filament-safely-delete

343.0k](/packages/konnco-filament-safely-delete)

PHPackages © 2026

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