Safaricom M-Pesa PHP SDK
VerifiedBuilt by Safaricom
A PHP library for integrating the Safaricom M-Pesa Daraja API, covering STK push, B2C, account balance and callback handling. Installed via composer require safaricom/mpesa.
- Category
- Developer Tools
- Pricing
- Free / open-source
- Country
- 🇰🇪 Kenya
- Last verified
- 25 Aug 2026
{ "name": "Safaricom M-Pesa PHP SDK", "slug": "safaricom-m-pesa-php-sdk", "category": "TOOL", "country": "KE", "docs_status": "LIVE", "licensing_required": "NONE", "verified": true, "last_verified": "2026-08-25", "website": "https://packagist.org/packages/safaricom/mpesa", "documentation_url": "https://packagist.org/packages/safaricom/mpesa"}Verification history
- 25 Aug 2026 · live
- 22 Aug 2026 · live
- 19 Aug 2026 · live
- 16 Aug 2026 · live
- 13 Aug 2026 · live
- 10 Aug 2026 · live
- 7 Aug 2026 · live
- 4 Aug 2026 · live
Automated checks run every few days. See all recent status changes
Connected infrastructure
- SDK forM-Pesa Daraja (Safaricom)APIs· Derived: same operator
Tags
Compare Safaricom M-Pesa PHP SDK
Side-by-side, verified specs against its closest sdk alternatives.
Related in Developer Tools
yabacon/paystack-php
PHP API wrapper for Paystack that returns calls as stdClass objects, supporting transaction initialization and verification plus customer and subscription management. Installed via Composer.
laravel-paystack
A community Laravel package (Packagist unicodeveloper/laravel-paystack) for integrating the Paystack payment gateway across Laravel 6-11, with payment initiation, callback handling, transaction verification and split payments. ~650 stars.
mpesa-rust
An unofficial Rust wrapper around the Safaricom M-Pesa API for account balance, B2C, C2B, STK push, transaction status, reversals and dynamic QR. Published as the mpesa crate on crates.io.