PHPackages                             salymmbise/evpay - 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. salymmbise/evpay

ActiveLibrary[Payment Processing](/categories/payments)

salymmbise/evpay
================

EvMak MNO Payment API PHP SDK

v1.0.2(1mo ago)10MITPHP

Since Apr 22Pushed 1mo agoCompare

[ Source](https://github.com/devmpemba/evpay)[ Packagist](https://packagist.org/packages/salymmbise/evpay)[ RSS](/packages/salymmbise-evpay/feed)WikiDiscussions master Synced 1w ago

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

EvPay PHP SDK
=============

[](#evpay-php-sdk)

Lightweight PHP SDK for integrating with the EvPay MNO Payment Gateway. Supports payment requests, reconciliation, and callback handling.

---

🚀 Installation
--------------

[](#-installation)

Install via Composer:

```
composer require salymmbise/evpay
```

---

⚙️ Requirements
---------------

[](#️-requirements)

- PHP 8.1+
- Composer

---

📦 Basic Usage
-------------

[](#-basic-usage)

### 1. Initialize Client

[](#1-initialize-client)

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

use EvMak\Client;

$client = new Client(
    "https://your-evmak-api-url.com",
    "your-username"
);
```

---

### 2. Send Payment Request

[](#2-send-payment-request)

```
use EvMak\Payment;

$payment = new Payment($client);

$response = $payment->request([
    "api_source" => "WEBHOSTTZ",
    "api_to" => "TigoPesa", // Mpesa, AirtelMoney, HaloPesa
    "amount" => 1000,
    "product" => "TestPayment",
    "callback" => "https://yourdomain.com/callback",
    "mobileNo" => "255686668866",
    "reference" => uniqid("EVM")
]);

print_r($response);
```

---

### 3. Check Transaction (Reconciliation)

[](#3-check-transaction-reconciliation)

```
use EvMak\Reconciliation;

$recon = new Reconciliation($client);

$status = $recon->check("EVM123456");

print_r($status);
```

---

🔐 Callback Handling
-------------------

[](#-callback-handling)

Your system must handle payment confirmation from EvMak.

### Example (Laravel)

[](#example-laravel)

```
Route::post('/callback', function (\Illuminate\Http\Request $request) {

    $data = $request->all();

    // Validate and store transaction
    // Recommended: verify hash and reference

    return response()->json([
        "Status" => "Success"
    ]);
});
```

---

🔑 Hash Generation
-----------------

[](#-hash-generation)

The API uses MD5 hashing:

```
md5(username . '|' . date('d-m-Y'));
```

This is handled automatically by the SDK.

---

📱 Supported Networks
--------------------

[](#-supported-networks)

- Mpesa
- TigoPesa
- AirtelMoney
- HaloPesa

---

⚠️ Best Practices
-----------------

[](#️-best-practices)

- Always store transactions before sending requests
- Use unique references (`uniqid()` or UUID)
- Secure your callback endpoint
- Log all API responses
- Implement retries for failed requests

---

🧪 Testing
---------

[](#-testing)

Use sandbox/test endpoint provided by EvMak before going live.

---

❗ Error Handling
----------------

[](#-error-handling)

Typical response codes:

CodeMeaning200Success403Authentication failed404Wrong destination500Server error---

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

[](#-contributing)

Pull requests are welcome. For major changes, open an issue first.

---

📄 License
---------

[](#-license)

MIT License

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance90

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity35

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 ~0 days

Total

2

Last Release

48d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/105650566?v=4)[Salym Mbisse](/maintainers/devmpemba)[@devmpemba](https://github.com/devmpemba)

---

Top Contributors

[![devmpemba](https://avatars.githubusercontent.com/u/105650566?v=4)](https://github.com/devmpemba "devmpemba (5 commits)")

### Embed Badge

![Health badge](/badges/salymmbise-evpay/health.svg)

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k532.1M2.5k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

1.9k496.1k32](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3751.2M45](/packages/tencentcloud-tencentcloud-sdk-php)[chargebee/chargebee-php

ChargeBee API client implementation for PHP

788.3M9](/packages/chargebee-chargebee-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k11](/packages/tempest-framework)[imdhemy/google-play-billing

Google Play Billing

491.4M5](/packages/imdhemy-google-play-billing)

PHPackages © 2026

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