Logo Lanfrica
  • Accueil
  • Atlas
  • Analyses
  • Documentation
  • Sign in

© 2026 Lanfrica. Tous droits réservés. Tous les droits d'auteur des ressources affichées sur le site Web Lanfrica appartiennent aux détenteurs de droits d'auteur d'origine, sauf indication contraire explicite.

L00P3R93/daraja-mpesa

Domaine:

digital infrastructure

Type de record:

software
Créateur:
L00
Hôte:
A PHP library/Laravel Package for integrating with M-Pesa Daraja API # M-Pesa Daraja PHP Library This is a PHP library designed to integrate with the M-Pesa Daraja API, exclusively for Laravel users but also adaptable for non-Laravel PHP applications. ## Installation ### For Laravel Users Install the package using Composer: ```sh composer require sntaks/daraja ``` ### For Non-Laravel Users If you are using plain PHP, you can install the package via Composer: ```sh composer require sntaks/daraja ``` Then, manually include the Composer autoloader at the beginning of your script: ```php require __DIR__ . '/vendor/autoload.php'; ``` ## Configuration ### Laravel Configuration Publish the configuration file: ```sh php artisan vendor:publish --tag=config ``` This will create a `config/mpesa.php` file where you can set your API credentials. ### For Non-Laravel Users Install the package using Composer: ```bash composer require sntaks/daraja ``` Since non-Laravel projects do not have automatic config publishing, you need to create a configuration file manually. Create a `config/mpesa.php` file in your project's root folder: ```php [ 'c2b' => [ 'consumer_key' => env('MPESA_C2B_CONSUMER_KEY'), 'consumer_secret' => env('MPESA_C2B_CONSUMER_SECRET'), ], 'b2c' => [ 'consumer_key' => env('MPESA_B2C_CONSUMER_KEY'), 'consumer_secret' => env('MPESA_B2C_CONSUMER_SECRET'), ], 'sandbox' => [ 'consumer_key' => env('MPESA_SANDBOX_CONSUMER_KEY'), 'consumer_secret' => env('MPESA_SANDBOX_CONSUMER_SECRET'), ], ], 'cache_location' => 'cache', 'callback_method' => 'POST', 'lnmo' => [ 'short_code' => env('MPESA_LNMO_SHORT_CODE'), 'callback' => env('MPESA_LMNO_CALLBACK'), 'passkey' => env('MPESA_LNMO_PASSKEY'), 'default_transaction_type' => 'CustomerPaybillOnline' ], 'c2b' => [ 'initiator_name' => env('MPESA_C2B_INITIATOR_NAME'), 'security_credential' => env('MPESA_C2B_SECURITY_CREDENTIAL'), 'confirmation_url' => env('MPESA_C2B_CONFIRMATION_URL'), 'validation_url' => env('MPESA_C2B_VALIDATION_URL'), 'on_timeout' => 'Completed', 'short_code' => en …

Visit

github.com

Languages

Lusengo

Licenses

MIT

Similaires

L00P3R93/daraja-mpesa-v1BKerio/mpesa-darajaEccb7/Mpesa-DarajaZentricTech/Mpesa-Daraja-Apimugane-dj/mpesa-daraja-stkmakhembu/mpesa-ultimate-daraja-guide

L00P3R93/daraja-mpesa-v1

A complete MPESA DARAJA API intergration of C2B, B2C, TransactionStatus & AccountBalance Requests #

BKerio/mpesa-daraja

# M-Pesa Daraja Full guide Django and Express.JS Payment Integration This project provides an end-t

Eccb7/Mpesa-Daraja

This repo acts a s a guide to Daraja API within a rails app and python # M-Pesa Daraja API Implemen

ZentricTech/Mpesa-Daraja-Api

Full M-Pesa Daraja API with PHP Welcome to the complete implementation of the M-Pesa Daraja API usin

mugane-dj/mpesa-daraja-stk

A simple python script for making an STK-Push using MPESA Daraja API # A simple python script for m

makhembu/mpesa-ultimate-daraja-guide

Comprehensive, developer-first documentation for Safaricom's M-Pesa Daraja 3.0 API. Includes OAuth,