PHPackages                             irfa/dompet - 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. [Security](/categories/security)
4. /
5. irfa/dompet

ActivePackage[Security](/categories/security)

irfa/dompet
===========

"E-Wallet plugin for Laravel 5,6,7"

v1.0.2(5y ago)241MITPHPPHP &gt;=7.0

Since Sep 2Pushed 5y ago1 watchersCompare

[ Source](https://github.com/irfaardy/esh-dompet)[ Packagist](https://packagist.org/packages/irfa/dompet)[ RSS](/packages/irfa-dompet/feed)WikiDiscussions master Synced 1w ago

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

🔒 **ESH Dompet**
================

[](#-esh-dompet)

Package ini berfungsi untuk menyimpan saldo ke dompet digital

### 🛠️ Installation with Composer

[](#️-installation-with-composer-)

```
composer require irfa/dompet
```

> You can get Composer [here](https://getcomposer.org/download/)

---

🛠️ Laravel Setup
-----------------

[](#️-laravel-setup-)

### 1. Add to config/app.php

[](#1-add-to-configappphp)

```
'providers' => [
      	 ....
         Irfa\Dompet\DompetServiceProvider::class,
     ];
```

### 2. Add to config/app.php

[](#2-add-to-configappphp)

```
'aliases' => [
         ....
    	'Dompet' => Irfa\Dompet\Saku\Dompet::class,
],
```

### 3. Publish Vendor

[](#3-publish-vendor)

```
php artisan vendor:publish --tag=dompet

```

### 4.Migrate Tables

[](#4migrate-tables)

```
php artisan migrate

```

Basic Usage
-----------

[](#basic-usage)

---

Create new PIN
--------------

[](#create-new-pin)

```
use Dompet;
...
Dompet::make($user->id, 123456);
//return boolean
```

Update PIN
----------

[](#update-pin)

```
...
Dompet::credential($userID,$pin)->update($new_pin);
//return boolean
```

Add Balance to account
----------------------

[](#add-balance-to-account)

```
...
Dompet::credential($userID,$pin)->balance(20000)->add("Some Transaction",$transaction_id);
//return boolean
```

Reduce Balance to account
-------------------------

[](#reduce-balance-to-account)

```
...
Dompet::credential($userID,$pin)->balance(20000)->reduce("Some Transaction",$transaction_id);
//return boolean
```

Get total Balance
-----------------

[](#get-total-balance)

```
...
Dompet::credential($user->id)->sumBalance();
//result 5000
//Formated number
Dompet::credential($user->id)->sumBalance(true);
// result 5,000
```

Get Transaction History
-----------------------

[](#get-transaction-history)

```
...
foreach(Dompet::credential($userID)->history() as $d)
 {
     echo $d->annotation." | ".$d->balance."";
 }
```

Get Message success or fail
---------------------------

[](#get-message-success-or-fail)

```
if(Dompet::credential()->balance(2000)->add("Some Transaction",$transaction_id))
{
     echo "Succeded, ".Dompet::message();
} else
	{
     	echo "Failed, ".Dompet::message();
	}
```

---

How to Contributing
-------------------

[](#how-to-contributing)

1. Fork it ()
2. Commit your changes (`git commit -m 'Add some Feature'`)
3. Push to the branch (`git push origin version`)
4. Create a new Pull Request

---

**LICENSE**
[![GitHub license](https://camo.githubusercontent.com/98829a5a15bfe88ba1bf50f545a2f34e8ef0bdf1eac2952072fe0f472f193554/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f69726661617264792f6c6f636b6f75742d6163636f756e743f7374796c653d666f722d7468652d6261646765)](https://github.com/irfaardy/lockout-account/blob/master/LICENSE)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

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

Every ~0 days

Total

3

Last Release

2083d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/371ddbe81fee5daf2246e1e6cea85792b76f7042ec9232c36e84870de4b2a37b?d=identicon)[irfaardy](/maintainers/irfaardy)

---

Top Contributors

[![irfaardy](https://avatars.githubusercontent.com/u/49023326?v=4)](https://github.com/irfaardy "irfaardy (14 commits)")

---

Tags

composeresh-dompetphppinpluginlaravelsecuritywalletdompet digital

### Embed Badge

![Health badge](/badges/irfa-dompet/health.svg)

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

###  Alternatives

[akaunting/laravel-firewall

Web Application Firewall (WAF) package for Laravel

999465.8k2](/packages/akaunting-laravel-firewall)[enlightn/laravel-security-checker

A Laravel package to scan your dependencies for known security vulnerabilities.

51173.4k](/packages/enlightn-laravel-security-checker)[glaivepro/hidevara

Laravel millipackage that hides variables from getting dumped in the Whoops page when your app crashes.

27303.9k](/packages/glaivepro-hidevara)

PHPackages © 2026

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