Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravelmpesa Laravel Package

gathuku/laravelmpesa

Integrate Safaricom M-Pesa into Laravel apps with a simple package for Daraja API payments, including STK Push, C2B, B2C, transaction status, and callback handling. Streamline mobile money workflows with clean, configurable PHP code.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Market expansion into Kenya/East Africa: supports a fast go/no-go test for adding M-Pesa as a checkout or payout option before committing to a larger payments roadmap.
  • Build vs. buy vs. integrate: gives the team a low-cost integration starting point for a Laravel app, useful as a reference implementation or thin adapter while evaluating whether to build an internal payments service or adopt a broader payment orchestrator.
  • MVP and pilot scoping: appropriate for validating demand, checkout conversion, and operational workflows for one-off collections, bill payments, donations, or simple marketplace flows.
  • Roadmap sequencing: helps decide whether to launch basic payment collection first, then layer on refunds, reconciliation, subscriptions, or seller payouts after transaction volume and support burden are understood.
  • Operational readiness decisions: forces early choices about reconciliation, failed-transaction handling, callback security, support tooling, and finance reporting—areas the package alone is unlikely to solve.
  • Risk and dependency management: with 50 stars, 0 dependents, and a maintenance history that went quiet after 2021, this should be treated as a prototype accelerator, not a strategic platform dependency. The new v1.2.2 release removes the PHP 8 blocker but does not change the underlying maturity profile—a single community-contributed compatibility patch is not evidence of sustained maintenance. A fork-and-own decision is still likely required before production use.
  • Use cases to evaluate: e-commerce checkout, SaaS billing in KES, marketplace seller payouts, utility or school fee collection, donations, and field-sales collections.

When to Consider This Package

Consider it when:

  • You have a Laravel/PHP application and need a quick M-Pesa proof of concept or low-volume MVP.
  • You are on PHP 8.x — v1.2.2 adds PHP 8 support, so the package is no longer disqualified purely on runtime compatibility (confirm your specific PHP minor and Laravel version in a sandbox before committing).
  • The team wants to avoid writing initial Daraja/M-Pesa boilerplate for authentication, configuration, callbacks, or basic transaction flows.
  • You can fork, test, and maintain the package internally, or you have a PHP engineer who can own the integration.
  • The transaction volume and business criticality are low enough that a time-boxed pilot is acceptable.
  • You can verify that it supports the specific M-Pesa APIs you need—such as payment collection, callbacks, reconciliation, or payouts.
  • You are prepared to add security controls around credential storage, callback validation, idempotency, logging, retries, and reconciliation.

Look elsewhere or build internally when:

  • You need production-grade uptime, SLAs, vendor support, or active maintenance.
  • You are building a regulated financial product, high-volume checkout, or mission-critical payout system.
  • You need multi-provider routing, advanced refunds, settlement reporting, or enterprise reconciliation.
  • The package has not kept pace with Safaricom Daraja API changes or your target Laravel version. Note that v1.2.2 addresses PHP 8 runtime support only—it does not signal Daraja API modernization, so validate the specific endpoints and payloads you depend on.
  • You cannot accept the risk of a small dependency with 0 dependents, one recent compatibility patch, and no demonstrated release cadence.
  • You lack in-house PHP capacity to review, fork, and maintain the integration.

How to Pitch It (Stakeholders)

Executive summary: This package can accelerate a Laravel-based M-Pesa integration for a Kenya market pilot at very low license cost. The newly published v1.2.2 adds PHP 8 support, which clears a real technical blocker and makes a pilot on a modern PHP stack feasible without an immediate fork. However, the maturity signals remain weak: 50 stars, 0 dependents, and a release history that was dormant from 2021 until this single community-contributed patch. Treat it as a time-boxed accelerator, not a foundation. Approve a small pilot with explicit exit criteria: successful sandbox and low-volume live transactions, security review, reconciliation proof, and a named internal owner for the fork.

For engineering: PHP 8 compatibility is now available in v1.2.2—verify it against your exact PHP and Laravel versions in a sandbox before planning around it, and treat this as a compatibility fix rather than a feature release. The package may still reduce boilerplate for M-Pesa configuration and basic transaction flows, but we must verify Daraja API compatibility, add tests, enforce idempotency, secure credentials, validate callbacks, and add observability and retry handling. Budget for fork maintenance.

For finance and operations: The package will not replace reconciliation, settlement reporting, refund handling, or support workflows. Those need product and ops design before launch.

Decision requested: Fund a limited pilot to validate M-Pesa demand and integration effort, now that the PHP 8 barrier is removed. If pilot criteria fail—or if the package returns to dormancy—fall back to the official Safaricom/Daraja documentation, a maintained SDK, a hosted payments partner, or an internal adapter.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
frankyso/ipaymu
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core