PHPackages                             polopolaw/fkwallet - 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. [API Development](/categories/api)
4. /
5. polopolaw/fkwallet

ActiveLibrary[API Development](/categories/api)

polopolaw/fkwallet
==================

Laravel package for fkwallet.io API integration

1.1.0(5mo ago)08MITPHPPHP ^8.1CI passing

Since Dec 8Pushed 5mo agoCompare

[ Source](https://github.com/polopolaw/fkwallet)[ Packagist](https://packagist.org/packages/polopolaw/fkwallet)[ RSS](/packages/polopolaw-fkwallet/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

FKWallet Laravel Package
========================

[](#fkwallet-laravel-package)

Laravel package for integration with fkwallet.io API.

Quick Start
-----------

[](#quick-start)

### Using Facade

[](#using-facade)

```
use Polopolaw\FKWallet\Facades\FKWallet;

$balance = FKWallet::getBalance();

$currencies = FKWallet::getCurrencies();

$withdrawal = FKWallet::createWithdrawal(new \Polopolaw\FKWallet\DTO\Requests\WithdrawalRequest(
    new \Polopolaw\FKWallet\ValueObjects\Amount(100.0),
    new \Polopolaw\FKWallet\ValueObjects\CurrencyId(1),
    new \Polopolaw\FKWallet\ValueObjects\PaymentSystemId(5),
    '79261234567',
    1,
    'unique_order_id'
));
```

### Using Proxy

[](#using-proxy)

You can specify a proxy for requests in two ways:

```
$balance = FKWallet::proxy('http://proxy.example.com:8080')->getBalance();
```

### Using Custom Credentials

[](#using-custom-credentials)

Override configured keys at runtime:

```
$balance = FKWallet::withCredentials('public_key', 'private_key')->getBalance();
```

### Using Service

[](#using-service)

```
use Polopolaw\FKWallet\Contracts\FKWalletServiceInterface;

$service = app(FKWalletServiceInterface::class);
$balance = $service->getBalance();
```

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

[](#installation)

Install the package via Composer:

```
composer require polopolaw/fkwallet
```

Configuration
-------------

[](#configuration)

Publish the configuration file:

```
php artisan vendor:publish --provider="Polopolaw\FKWallet\FKWalletServiceProvider" --tag="config"
```

Add the following to your `.env` file:

```
FKWALLET_API_URL=https://api.fkwallet.io/v1/
FKWALLET_PUBLIC_KEY=your_public_key_here
FKWALLET_PRIVATE_KEY=your_private_key_here
FKWALLET_TIMEOUT=30
FKWALLET_RETRY_ATTEMPTS=3
```

Available Methods
-----------------

[](#available-methods)

> **Note:** All methods use the `FKWALLET_PUBLIC_KEY` and `FKWALLET_PRIVATE_KEY` from your configuration file. Or you can pass as a parameter keys.

### GET Methods

[](#get-methods)

- `getBalance()` - Get wallet balance
- `getHistory(?string $dateFrom, ?string $dateTo, int $page, int $limit)` - Get transaction history
- `getCurrencies()` - Get list of currencies
- `getPaymentSystems()` - Get payment systems
- `getSbpList()` - Get SBP banks list
- `getMobileCarrierList()` - Get mobile carriers list
- `getWithdrawalStatus(string $orderId, OrderStatusType $type)` - Get withdrawal status
- `getTransferStatus(int $id)` - Get transfer status
- `getOnlineProductCategories()` - Get online product categories
- `getOnlineProducts(int $categoryId)` - Get online products
- `getOnlineOrderStatus(string $orderId)` - Get online order status

### POST Methods

[](#post-methods)

- `createWithdrawal(WithdrawalRequest $request)` - Create withdrawal
- `createTransfer(TransferRequest $request)` - Create transfer
- `createOnlineOrder(OnlineOrderRequest $request)` - Create online order

Documentation
-------------

[](#documentation)

For detailed documentation, see the [docs](docs) directory.

To generate Docusaurus documentation:

```
cd docs
npm install
npm start
```

Testing
-------

[](#testing)

Run tests with Pest:

```
composer test
```

Requirements
------------

[](#requirements)

- PHP 8.1+
- Laravel 9.0+ | 10.0+ | 11.0+

License
-------

[](#license)

MIT

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance73

Regular maintenance activity

Popularity4

Limited adoption so far

Community6

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

Every ~0 days

Total

2

Last Release

153d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7d49dc819943b1f1afdfb906ea68faf5b32d6a008d2385a41f5c752b1ed26cd0?d=identicon)[polopolaw](/maintainers/polopolaw)

---

Top Contributors

[![polopolaw](https://avatars.githubusercontent.com/u/21076418?v=4)](https://github.com/polopolaw "polopolaw (8 commits)")

---

Tags

fkwalletlaravelphp

###  Code Quality

TestsPest

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/polopolaw-fkwallet/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M271](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[microsoft/microsoft-graph

The Microsoft Graph SDK for PHP

65723.5M96](/packages/microsoft-microsoft-graph)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)

PHPackages © 2026

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