PHPackages                             hexxondiv/switchapp-laravel - 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. hexxondiv/switchapp-laravel

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

hexxondiv/switchapp-laravel
===========================

A laravel library for switchappgo

v1.0.5(3y ago)229MITPHP

Since Apr 14Pushed 3y ago1 watchersCompare

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

READMEChangelog (4)DependenciesVersions (7)Used By (0)

SwitchappLaravel Library
========================

[](#switchapplaravel-library)

A PHP library for integrating with the SwitchApp API.

### Requirements

[](#requirements)

- PHP version 7.0 or higher
- Laravel version 5.x or higher

To use this library, you'll first need to register @ [SwitchAppGo](https://switchappgo.com), and then get your developer secret key and public keys from the [developers page](https://dashboard.switchappgo.com/developers).

### Installation

[](#installation)

- Use Composer to install the library:

    ```
     composer require hexxondiv/switchapp-laravel
    ```

### Usage

[](#usage)

1. Import the SwitchAppService class:

    `use Hexxondiv\SwitchappLaravel\SwitchAppService;`
2. Create an instance of the SwitchAppService class:

    ```
    $switchAppService = new SwitchAppService($config);
    ```

Where `$config` is an array containing the following keys: - `public_key:` Your SwitchApp API public key - `secret_key:` Your SwitchApp API secret key - `bvn:` Your Bank Verification Number (BVN)

- Call any of the available methods on the SwitchAppService instance to interact with the SwitchApp API. For example:

    ```
    $payment = $switchAppService->verifyPaymentByID('tx_473453045')->getResult();
    ```

This code verifies a payment with the ID `tx_473453045` and stores the result in the $payment variable.

### Available Methods

[](#available-methods)

- `verifyPaymentByID($payment_id):` Verifies a payment by ID.
- `verifyPayment($tx_ref):` Verifies a payment by transaction reference.
- `verifyTopUp($ref):` Verifies a top-up transaction by reference.
- `payoutToWallet($account_id):` Sends a payout to a wallet.
- `payoutToBank($account_id):` Sends a payout to a bank account.
- `initializeTx($data):` Initializes a new transaction.
- `initializeTopUpTx($data):` Initializes a new top-up transaction.
- `initializeTransfer($data):` Initializes a new transfer.
- `getTransferSingleReference($ref):` Retrieves a single transfer reference.
- `getTransferBatchReference($ref):` Retrieves a batch transfer reference.
- `initializeInvoiceLink($data):` Initializes a new invoice link.
- `walletBalance($currency = 'NGN'):` Retrieves the wallet balance for a given currency.
- `createTransferRecipient($data):` Creates a new transfer recipient.
- `fetchBeneficiary($data):` Retrieves a beneficiary.
- `deleteDVA($id):` Deletes a DVA (Dedicated Virtual Account) by ID.
- `newDVA($data):` Creates a new DVA.
- `getDVATransactions($orderRef, $payload):` Retrieves DVA transactions.
- `getAllClientTransactions($payload):` Retrieves all client transactions.

All methods return a SwitchApp API response object. Call getResult() on the SwitchAppService instance to get the result of the last method call.

### Contributing

[](#contributing)

Contributions to this library are welcome! To contribute, please follow these steps:

- Fork the repository
- Create a new branch for your feature or bugfix
- Make your changes and commit them with clear commit messages
- Push your changes to your fork
- Create a pull request to merge your changes into the main repository

### License

[](#license)

This library is licensed under the MIT license. See the *LICENSE* file for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

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

6

Last Release

1129d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/11335d3483b34693be8c98d6ec6849179dc3dec380ac715ba0ba02cb26d41772?d=identicon)[hexxondiv](/maintainers/hexxondiv)

### Embed Badge

![Health badge](/badges/hexxondiv-switchapp-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/hexxondiv-switchapp-laravel/health.svg)](https://phpackages.com/packages/hexxondiv-switchapp-laravel)
```

###  Alternatives

[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k20](/packages/civicrm-civicrm-core)[bizley/quill

Quill editor implementation for Yii 2.

64133.3k5](/packages/bizley-quill)[ebanx/benjamin

Business rule provider lib for plugin implementations

18155.2k1](/packages/ebanx-benjamin)[shel/neos-colorpicker

A plugin for Neos CMS which provides a colorpicker editor

1494.4k6](/packages/shel-neos-colorpicker)

PHPackages © 2026

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