Kenya
10 verified resources in Developer Tools for building in Kenya.
Safaricom M-Pesa PHP SDK
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.
africastalking-python
Official Python SDK for the Africa's Talking APIs, providing access to payments alongside SMS, voice, airtime, mobile data and WhatsApp services. Supports synchronous and asynchronous operations.
django-daraja
Python Django library for interacting with the Safaricom M-Pesa Daraja API, simplifying STK push and related mobile money operations. Marked Production/Stable on PyPI with Read the Docs documentation.
iankumu/mpesa (Laravel M-Pesa)
A Laravel wrapper for the Safaricom M-Pesa Daraja APIs supporting STK push, B2C, B2B, C2B, transaction status, balance and reversals. Installed via composer require iankumu/mpesa.
kenya-administrative-divisions
npm package providing Kenya's 47 counties plus their constituencies and wards with helper methods like getCounties, getConstituencies and getWards. Written in TypeScript with hierarchical and flat-array access.
kenyan-mobile-number-validator
Node.js package that validates Kenyan mobile numbers and identifies the network operator (Safaricom, Airtel or Telkom) using precise regex on the network prefixes, supporting national and E.164 formats. Useful for KYC and form validation in Kenyan apps.
mpesa-api (Node.js)
A Node.js module that wraps the Safaricom M-Pesa Daraja API, supporting C2B, B2C, STK push, transaction status, balance and reversals. Installed via npm i mpesa-api.
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.
mpesa_flutter_plugin
A Flutter plugin that provides a Lipa Na M-Pesa Online STK push payment initialization interface for mobile apps. Added via mpesa_flutter_plugin in pubspec.yaml.
ussd-menu-builder
A Node.js library for composing USSD menus using a state-machine approach, compatible with the Africa's Talking and Hubtel USSD APIs. Installed via npm install ussd-menu-builder.
