PHPackages                             elite/strowallet-sdk - 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. [Payment Processing](/categories/payments)
4. /
5. elite/strowallet-sdk

ActiveLibrary[Payment Processing](/categories/payments)

elite/strowallet-sdk
====================

A simple SDK for making payments and creating USD virtual cards via the Strowallet API.

v1.1.0(1y ago)22MITPHP

Since Apr 27Pushed 1y ago1 watchersCompare

[ Source](https://github.com/eliteio01/strowallet-laravel-sdk)[ Packagist](https://packagist.org/packages/elite/strowallet-sdk)[ RSS](/packages/elite-strowallet-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

Strowallet Laravel SDK
======================

[](#strowallet-laravel-sdk)

[![Packagist Version](https://camo.githubusercontent.com/6f1229e8daa18510c407a4c8d33d7c710146bc5e88c1cb1614eb4bc424b054a5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656c6974652f7374726f77616c6c65742d73646b)](https://packagist.org/packages/elite/strowallet-sdk)[![Packagist License](https://camo.githubusercontent.com/8aba9e7323bba89d76362052be757cea60c410ad8396716671e2d078534724a0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f656c6974652f7374726f77616c6c65742d73646b)](https://github.com/eliteio01/strowallet-laravel-sdk/blob/main/LICENSE)[![License: MIT](https://camo.githubusercontent.com/a0e3b00385daa6b55b40b2ddd1eca79201737a9a55e6899522db2f708957d1ba/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d707572706c652e737667)](https://opensource.org/licenses/MIT)[![GitHub Issues](https://camo.githubusercontent.com/d186133df646c35e233dad90882767212b4229d9b08ba2959cd46c1cf401f77b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f656c697465696f30312f7374726f77616c6c65742d6c61726176656c2d73646b)](https://github.com/eliteio01/strowallet-laravel-sdk/issues)

A clean and developer-friendly Laravel SDK for interacting with [Strowallet](https://strowallet.com), supporting virtual cards, wallet transfers, and bank transactions with ease.

---

📚 Table of Contents
-------------------

[](#-table-of-contents)

- [✨ Features](#-features)
- [📦 Installation](#-installation)
- [⚙️ Configuration](#-configuration)
- [🚀 Usage](#-usage)
    - [Card Service](#card-service)
    - [Wallet Service](#wallet-service)
    - [Bank Service](#bank-service)
- [💡 Examples](#-examples)
- [🧹 Extending](#-extending)
- [🧪 Testing](#-testing)
- [📄 License](#-license)
- [🤝 Contributing](#-contributing)
- [🙌 Credits](#-credits)

---

✨ Features
----------

[](#-features)

- 🔐 Virtual card issuance and management
- 💸 Wallet-to-wallet transfers
- 🏦 Bank verification and transfers
- ⚙️ Simple Laravel service-based architecture
- ✅ Built-in request validation and error handling
- 📘 Clean, readable, and extendable codebase

---

📦 Installation
--------------

[](#-installation)

Install via Composer:

```
composer require elite/strowallet-sdk
```

---

⚙️ Configuration
----------------

[](#️-configuration)

Add the following to your `.env` file:

```
STROWALLET_BASE_URL=https://strowallet.com/api
STROWALLET_API_KEY=your_pub_key_here
```

---

🚀 Usage
-------

[](#-usage)

You can access services in two ways:

### ✅ Via Facade (Recommended)

[](#-via-facade-recommended)

```
use Elite\StrowalletLaravel\Facades\Strowallet as StrowalletFacade;

// Get list of banks
$banks = StrowalletFacade::bank()->getBankList();

// Perform bank transfer
$response = StrowalletFacade::bank()->bankTransfer(
    amount: '50000',
    bankCode: '058',
    accountNumber: '0123456789',
    narration: 'Transfer for invoice',
    nameEnquiryRef: 'ref123456',
    senderName: 'Elite Corp'
);
```

### ✅ Via Dependency Injection

[](#-via-dependency-injection)

```
use Elite\StrowalletLaravel\Strowallet;

class WalletController extends Controller
{
    public function showBalance(Strowallet $strowallet)
    {
        $balance = $strowallet->wallet()->getWalletBalance();
        return response()->json($balance);
    }
}
```

### Card Service

[](#card-service)

```
$strowallet->card()->createCardUser([
    'firstName' => 'John',
    'lastName' => 'Doe',
    // ... additional fields
]);

$strowallet->card()->createCard([
    'name_on_card' => 'John Doe',
    'card_type' => 'visa',
    'amount' => '100.00',
    'customerEmail' => 'john@example.com'
]);
```

#### Available Card Methods

[](#available-card-methods)

- `createCardUser(array $data)`
- `updateCardHolder(array $data)`
- `getCardHolder(string $customerEmail)`
- `createCard(array $data)`
- `fundCard(array $data)`
- `getCardDetails(string $cardId)`
- `cardAction(string $cardId, string $action)` — *freeze/unfreeze*
- `withdrawCard(array $data)`
- `getCardTransactions(string $cardId)`
- `createGiftCard(array $data)`

---

### Wallet Service

[](#wallet-service)

```
$strowallet->wallet()->transfer(
    amount: '100.00',
    currency: 'USD',
    receiver: 'recipient@example.com',
    note: 'Payment for services'
);
```

---

### Bank Service

[](#bank-service)

```
// Fetch list of supported banks
$banks = $strowallet->bank()->getBankList();

// Verify bank account
$account = $strowallet->bank()->getBankName(
    bankCode: '000013',
    accountNumber: '0123456789'
);

// Initiate transfer
$transfer = $strowallet->bank()->bankTransfer(
    amount: '5000.00',
    bankCode: '058',
    accountNumber: '0123456789',
    narration: 'Salary payment',
    nameEnquiryRef: 'REF123456'
);
```

---

💡 Examples
----------

[](#-examples)

### Full Virtual Card Flow

[](#full-virtual-card-flow)

```
// Step 1: Create user
$user = $strowallet->card()->createCardUser([
    'firstName' => 'John',
    'lastName' => 'Doe',
    // required fields...
]);

// Step 2: Create virtual card
$card = $strowallet->card()->createCard([
    'name_on_card' => 'John Doe',
    'card_type' => 'visa',
    'amount' => '100.00',
    'customerEmail' => 'john@example.com'
]);

// Step 3: Fund card
$fund = $strowallet->card()->fundCard([
    'card_id' => $card['id'],
    'amount' => '50.00'
]);
```

---

🧹 Extending
-----------

[](#-extending)

You can easily add custom methods to the SDK:

```
public function newMethod(array $data): Collection
{
    return $this->client->post('/new-endpoint', $data);
}
```

Just define your method in the appropriate service class (`CardService`, `WalletService`, etc.).

---

🧪 Testing
---------

[](#-testing)

Coming soon. The test suite will be available to ensure SDK stability and easy contribution.

In the meantime, you can run:

```
composer test
```

---

📄 License
---------

[](#-license)

This package is open-source software licensed under the [MIT license](LICENSE).

---

🤝 Contributing
--------------

[](#-contributing)

We welcome all contributions!
Please read our [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines on submitting issues, feature requests, and pull requests.

---

🙌 Credits
---------

[](#-credits)

- Developed by [Elite](https://github.com/eliteio01)
- Powered by [Strowallet](https://strowallet.com)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance49

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

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.

###  Release Activity

Cadence

Every ~1 days

Total

2

Last Release

376d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bed4751cb5d7ce949b825865333f4f5ad99db66605928bfba00a09638fa540b2?d=identicon)[eliteio01](/maintainers/eliteio01)

---

Top Contributors

[![eliteio01](https://avatars.githubusercontent.com/u/171143479?v=4)](https://github.com/eliteio01 "eliteio01 (9 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/elite-strowallet-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/elite-strowallet-sdk/health.svg)](https://phpackages.com/packages/elite-strowallet-sdk)
```

###  Alternatives

[sebdesign/laravel-viva-payments

A Laravel package for integrating the Viva Payments gateway

4845.9k](/packages/sebdesign-laravel-viva-payments)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)[karson/mpesa-php-sdk

172.2k](/packages/karson-mpesa-php-sdk)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[henryejemuta/laravel-monnify

A laravel package to seamlessly integrate monnify api within your laravel application

132.1k](/packages/henryejemuta-laravel-monnify)

PHPackages © 2026

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