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 today

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 31% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

604d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/144620580?v=4)[h-iranshahi](/maintainers/h-iranshahi)[@h-iranshahi](https://github.com/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

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M282](/packages/illuminate-pipeline)[illuminate/redis

The Illuminate Redis package.

8314.6M374](/packages/illuminate-redis)[illuminate/cookie

The Illuminate Cookie package.

244.6M137](/packages/illuminate-cookie)

PHPackages © 2026

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