Download the PHP package joemuigai/laravel-mpesa without Composer

On this page you can find all versions of the php package joemuigai/laravel-mpesa. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-mpesa

Laravel M-Pesa

Latest Version on Packagist GitHub Tests Action Status Total Downloads

A comprehensive, production-ready Laravel package for integrating with Safaricom's M-Pesa Daraja API. Built for both single-merchant applications and multi-tenant SaaS platforms.

Table of Contents

Features

โœจ Complete API Coverage - 11 M-Pesa APIs supported
๐Ÿข Multi-Tenant Ready - Database-driven account management
๐Ÿ’ช Production Optimized - HTTP retries, caching, and failsafe mechanisms
๐ŸŽฏ Flexible - Paybill & Till Number (Buy Goods) support
๐Ÿ”ง Developer Friendly - Interactive installation, IDE autocomplete
๐Ÿงช Well Tested - Comprehensive test suite
๐Ÿ“š Type Safe - Full PHPDoc annotations

๐Ÿ‘‰ View Full Features Guide for detailed capabilities.

Requirements

Installation

Install via Composer:

Run the interactive installation command to set up configuration and migrations:

The wizard will guide you through:

  1. Scenario Selection (Single vs Multi-tenant)
  2. API Selection (STK, C2B, B2C, etc.)
  3. Environment Setup

Configuration

Environment Variables

After installation, add your credentials to .env:

See config/mpesa.php for all available options.

Usage

For detailed code examples, payloads, and callback handling, please refer to the USAGE.md file.

Quick Example: STK Push

Supported APIs

Multi-Tenant Usage

For SaaS platforms, you can switch accounts dynamically:

See the Multi-Tenant Guide for database setup and more examples.

Production Checklist

Before going live, ensure you have:

Testing

Run the package test suite:

Contributing

Contributions are welcome! Please see CONTRIBUTING for details.

Security

If you discover a security vulnerability, please email [email protected].

Credits

License

The MIT License (MIT). Please see License File for more information.

Support


Made with โค๏ธ in Kenya ๐Ÿ‡ฐ๐Ÿ‡ช


All versions of laravel-mpesa with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^11.0||^12.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package joemuigai/laravel-mpesa contains the following files

Loading the files please wait ...