PHPackages                             parsepesa/php - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. parsepesa/php

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

parsepesa/php
=============

Official PHP SDK for ParsePesa - The Stripe for M-Pesa SMS.

v2.0.0(1mo ago)10MITPHPPHP &gt;=7.4

Since Jun 11Pushed 1mo agoCompare

[ Source](https://github.com/Iconia7/parsepesa-php-sdk)[ Packagist](https://packagist.org/packages/parsepesa/php)[ RSS](/packages/parsepesa-php/feed)WikiDiscussions main Synced 3w ago

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

ParsePesa PHP SDK 🐘
===================

[](#parsepesa-php-sdk-)

The official PHP SDK for **ParsePesa** - The Stripe for M-Pesa SMS. Convert raw M-Pesa messages into structured JSON in milliseconds.

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

[](#installation)

Install the package via [Composer](https://getcomposer.org/):

```
composer require parsepesa/php
```

Quick Start
-----------

[](#quick-start)

```
use ParsePesa\ParsePesa;

$sdk = new ParsePesa('your_api_key');

// Parse a single message
$result = $sdk->parse("Confirmed. You have received KES 500.00 from JOHN DOE...");

echo $result['amount']; // 500
echo $result['counterparty']; // JOHN DOE
```

Features
--------

[](#features)

### 1. Single Parsing

[](#1-single-parsing)

```
$result = $sdk->parse($message);
```

### 2. Batch Parsing

[](#2-batch-parsing)

```
$results = $sdk->batchParse([$msg1, $msg2]);
```

### 3. Account Balance

[](#3-account-balance)

```
$balance = $sdk->getBalance();
echo "KES " . $balance;
```

### 4. Handling Webhooks

[](#4-handling-webhooks)

Use this in your callback URL endpoint:

```
$data = $sdk->handleWebhook();
// Process $data['type'], $data['amount'], etc.
```

Requirements
------------

[](#requirements)

- PHP 7.4 or higher
- `guzzlehttp/guzzle` 7.0+

License
-------

[](#license)

MIT

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance91

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity33

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

Unknown

Total

1

Last Release

43d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/124764747?v=4)[Newton Mwangi](/maintainers/Iconia7)[@Iconia7](https://github.com/Iconia7)

---

Top Contributors

[![Iconia7](https://avatars.githubusercontent.com/u/124764747?v=4)](https://github.com/Iconia7 "Iconia7 (2 commits)")

---

Tags

parsersmsmpesakenyafintechparsepesa

### Embed Badge

![Health badge](/badges/parsepesa-php/health.svg)

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

###  Alternatives

[aws/aws-sdk-php

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

6.2k543.5M2.7k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k46](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

293.1k](/packages/eslazarev-wildberries-sdk)[ellaisys/aws-cognito

Laravel Authentication using AWS Cognito (Web and API)

121256.9k1](/packages/ellaisys-aws-cognito)[phanan/poddle

Parse podcast feeds with PHP following PSP-1 Podcast RSS Standard

1732.7k8](/packages/phanan-poddle)

PHPackages © 2026

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