定制 me12free/laravel-mpesa-stkpush-production 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

me12free/laravel-mpesa-stkpush-production

Composer 安装命令:

composer require me12free/laravel-mpesa-stkpush-production

包简介

A premium Laravel package for secure, production-ready M-Pesa STK Push integration.

README 文档

README

Sponsor License: MIT GitHub stars Buy Me a Coffee

README | Tests | License: MIT | Buy Me a Coffee | GitHub stars

A premium Laravel package for secure, production-ready M-Pesa STK Push integration.

100% Free & Open for Contributions

This package is fully free to use and open for contributions. There are no plans to introduce a commercial license or restrict usage. You are encouraged to use, modify, and contribute to the package.

Support & Sponsorship

If you find this package useful, you can support development and motivate the author by buying a coffee.

Premium Services

  • Quick/Advanced Support: For urgent help, advanced support, or customizations, please open an issue or sponsor via BuyMeACoffee. You can also email johnewoi72@gmail.com for direct support.
  • Customization: Custom features and integrations are available as a premium service. Contact via issues, BuyMeACoffee, or email johnewoi72@gmail.com for details.

Contributions

Contributions are welcome! Please open issues or pull requests to help improve the package.

Monetization & Premium

  • Sponsorship: Support ongoing development via BuyMeACoffee.
  • Powered by Link: By default, a small "Powered by M-Pesa Premium" link appears on the payment form. You can disable it in the config.

Quick Start

composer require me12free/laravel-mpesa-stkpush-production
php artisan vendor:publish --provider="MpesaPremium\\MpesaPremiumServiceProvider"

Set your credentials in .env (see below), then use the service or controller to initiate payments.

Configuration

Publish the config file and set your production credentials:

php artisan vendor:publish --provider="MpesaPremium\\MpesaPremiumServiceProvider"

Set these in your .env:

MPESA_STK_ENDPOINT=https://api.safaricom.co.ke/mpesa/stkpush/v1/processrequest
MPESA_OAUTH_ENDPOINT=https://api.safaricom.co.ke/oauth/v1/generate?grant_type=client_credentials
MPESA_CONSUMER_KEY=your_production_key
MPESA_CONSUMER_SECRET=your_production_secret
MPESA_SHORTCODE=your_shortcode
MPESA_PASSKEY=your_passkey
MPESA_CALLBACK_URL=https://yourdomain.com/api/mpesa/callback?secret=your_shared_secret
MPESA_CALLBACK_SECRET=your_shared_secret

Branding/Upgrade Link

To remove the "Powered by" or "Upgrade" link, set in your config/mpesa-stkpush.php:

'branding' => [
    'powered_by' => true, // Show "Powered by" link
    'upgrade_link' => true, // Show "Upgrade to Premium" link
],

Premium Add-ons

  • SaaS dashboard integration (coming soon)
  • Advanced reporting (coming soon)
  • More payment gateways (coming soon)

Demo

Demo GIF

Security

If you discover any security vulnerability, please open an issue. Do not disclose it publicly until it has been addressed.

License

This package is fully free and open for all use. For premium support or customization, please use BuyMeACoffee, open an issue, or email johnewoi72@gmail.com.

For premium support, onboarding, or urgent help, open an issue, contact @me12free on GitHub, or email johnewoi72@gmail.com.

📖 Full Integration Guide

For a comprehensive, step-by-step guide to M-Pesa STK Push integration in Laravel (including best practices, troubleshooting, and advanced topics), see:

Security Best Practices

  • Always use HTTPS in production
  • Restrict callbacks to Safaricom IPs
  • Use strong, unique secrets
  • Enable 2FA for all admin users
  • Never log sensitive credentials

Advanced Usage

  • Extend the Payment model for your own business logic
  • Customize the view for your brand
  • Add additional payment gateways as needed
  • Use Laravel events to trigger notifications on payment status

Support & Community

For premium support, onboarding, or urgent help, contact: johnewoi72@gmail.com or @me12free on GitHub.

Contributing

This package is fully free and open for contributions! Please open issues or pull requests on GitHub to help improve the package.

For partnership or advanced collaboration inquiries, you can email johnewoi72@gmail.com or open an issue on the GitHub repository.

me12free/laravel-mpesa-stkpush-production 适用场景与选型建议

me12free/laravel-mpesa-stkpush-production 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 11 次下载、GitHub Stars 达 6, 最近一次更新时间为 2025 年 06 月 21 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 me12free/laravel-mpesa-stkpush-production 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 me12free/laravel-mpesa-stkpush-production 我们能提供哪些服务?
定制开发 / 二次开发

基于 me12free/laravel-mpesa-stkpush-production 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 11
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 20
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-06-21