PHPackages                             h-iranshahi/blockchain-based-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. h-iranshahi/blockchain-based-wallet

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

h-iranshahi/blockchain-based-wallet
===================================

A wallet management package based on blockchain

1.0.0(1y ago)04MITPHPPHP ^7.3|^8.0

Since Nov 6Pushed 1y ago1 watchersCompare

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

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

Wallet Documentation
====================

[](#wallet-documentation)

Overview
--------

[](#overview)

The **Wallet package** provides a robust API for managing user wallets within the application. It enables users to perform operations such as checking balances, depositing and withdrawing funds, and transferring money between users. The package leverages blockchain technology to ensure the integrity and traceability of transactions.

---

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

[](#installation)

To integrate the **Wallet** package into your Laravel project, follow these steps:

### 1. Install the Package via Composer

[](#1-install-the-package-via-composer)

Install the **Wallet** package by running the following command in your Laravel project’s root directory:

```
composer require h-iranshahi/blockchain-based-wallet
```

---

Features
--------

[](#features)

- **User Authentication**: All operations require user authentication via Laravel Sanctum.
- **Wallet Operations**:
    - **Balance Inquiry**: Retrieve current wallet balance and transaction history.
    - **Deposits**: Add funds to wallets with transaction logging.
    - **Withdrawals**: Withdraw funds, with logging of all transactions.
    - **Transfers**: Transfer funds between users, with validation and logging.
- **Blockchain Integration**: Records all transactions on the blockchain for security and transparency.
- **Event Broadcasting**: Notifies upon transaction creation for additional processing.

---

API Routes
----------

[](#api-routes)

### Base URL

[](#base-url)

All API routes are prefixed with `/api` and require authentication.

### Endpoints

[](#endpoints)

MethodEndpointDescriptionGET`/api/wallet/balance`Get current balance and transaction history.POST`/api/wallet/deposit`Deposit funds into the wallet.POST`/api/wallet/withdraw`Withdraw funds from the wallet.POST`/api/wallet/transfer`Transfer funds between users.GET`/blockchain/validate`Validate the integrity of the blockchain.---

Blockchain Integration
----------------------

[](#blockchain-integration)

- **Transaction Recording**: All transactions (deposit, withdrawal, transfer) are logged in the blockchain.
- **Security and Transparency**: Ensures the integrity and traceability of all wallet operations.

---

Testing
-------

[](#testing)

The package includes tests in the `WalletControllerTest` class, covering:

- Required fields validation for transfers.
- Error handling for insufficient funds.
- Successful transaction verification and balance updates.
- Testing invalid recipient IDs and amounts.

---

Conclusion
----------

[](#conclusion)

The Wallet package offers a secure and efficient method for users to manage their wallets, ensuring that all transactions are recorded transparently using blockchain technology.

---

License
-------

[](#license)

This project is licensed under the [MIT License](LICENSE).

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

552d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1b5aac1a33006107449ec52ba98e96a9557a9c6ac883ce2394e89654352919cb?d=identicon)[h-iranshahi](/maintainers/h-iranshahi)

---

Top Contributors

[![h-iranshahi](https://avatars.githubusercontent.com/u/144620580?v=4)](https://github.com/h-iranshahi "h-iranshahi (8 commits)")

### Embed Badge

![Health badge](/badges/h-iranshahi-blockchain-based-wallet/health.svg)

```
[![Health](https://phpackages.com/badges/h-iranshahi-blockchain-based-wallet/health.svg)](https://phpackages.com/packages/h-iranshahi-blockchain-based-wallet)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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