PHPackages                             ilebora/borawallet - 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. ilebora/borawallet

ActiveLibrary[API Development](/categories/api)

ilebora/borawallet
==================

A package for BoraWallet API.

v1.0.1(1y ago)07MITPHPPHP &gt;=8.0

Since Nov 29Pushed 11mo ago1 watchersCompare

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

READMEChangelogDependenciesVersions (3)Used By (0)

BoraWallet
==========

[](#borawallet)

`BoraWallet` is a PHP library for initiating mobile wallet payments such as MPESA STK push using a custom API. It builds on the BoraService base class and provides an easy way to initiate and manage wallet transactions in your application.

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

[](#installation)

To install the package, you can use Composer:

```
composer require ilebora/borawallet
```

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

[](#configuration)

Before using `BoraWallet`, you'll need to provide your API credentials (API key, user ID, and display name). There are two ways to do this:

1. **Using Environment Variables (`.env` file)**
    The package can automatically read the API credentials from your `.env` file using [vlucas/phpdotenv](https://github.com/vlucas/phpdotenv).
2. **Using Getter and Setter Methods**
    Alternatively, you can set the credentials directly via getter and setter methods.

### Example `.env` file

[](#example-env-file)

Create a `.env` file in the root of your project with the following contents:

```
BORA_API_KEY=your_api_key
BORA_USER_ID=your_user_id
BORA_DISPLAY_NAME=your_display_name

```

### Example Usage

[](#example-usage)

Below is an example of how to use the `BoraWallet` class.

```
