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

ActiveLibrary[API Development](/categories/api)

marzpay/php-sdk
===============

Official PHP SDK for MarzPay - Mobile Money Payment Platform for Uganda

1.0.0(7mo ago)10MITPHPPHP ^8.0

Since Oct 15Pushed 7mo agoCompare

[ Source](https://github.com/Katznicho/marzpay-php)[ Packagist](https://packagist.org/packages/marzpay/php-sdk)[ Docs](https://github.com/Katznicho/marzpay-php)[ RSS](/packages/marzpay-php-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (5)Versions (2)Used By (0)

MarzPay PHP SDK
===============

[](#marzpay-php-sdk)

A comprehensive PHP SDK for the MarzPay API, providing seamless integration for payment collections, disbursements, and phone verification services in Uganda.

Features
--------

[](#features)

- **Collect Money**: Accept payments from customers via MTN, Airtel, and other providers
- **Send Money**: Send money to recipients using various payment providers
- **Phone Verification**: Verify phone numbers and retrieve user information
- **Laravel Integration**: Full Laravel support with ServiceProvider and Facade
- **Type Safety**: Comprehensive error handling and validation
- **Well Documented**: Extensive documentation and examples

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

[](#documentation)

- **[Complete Guide](README.md)** - This file with basic usage examples
- **[Laravel Integration Guide](README-LARAVEL.md)** - Complete Laravel integration guide
- **[API Reference](API-REFERENCE.md)** - Detailed API documentation
- **[Testing Guide](README-TESTING.md)** - Testing setup and examples

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

[](#installation)

### Via Composer

[](#via-composer)

```
composer require marzpay/php-sdk
```

### Manual Installation

[](#manual-installation)

1. Download the SDK files
2. Include the autoloader:

```
require_once 'vendor/autoload.php';
```

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

[](#configuration)

### Environment Variables

[](#environment-variables)

Create a `.env` file or set environment variables:

```
MARZPAY_API_KEY=your_api_key_here
MARZPAY_API_SECRET=your_api_secret_here
MARZPAY_BASE_URL=https://wallet.wearemarz.com/api/v1
MARZPAY_TIMEOUT=30
```

### Basic Usage

[](#basic-usage)

```
