Download the PHP package alvincoded/laravel-mtn-momo-ai without Composer
On this page you can find all versions of the php package alvincoded/laravel-mtn-momo-ai. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alvincoded/laravel-mtn-momo-ai
More information about alvincoded/laravel-mtn-momo-ai
Files in alvincoded/laravel-mtn-momo-ai
Package laravel-mtn-momo-ai
Short Description A Laravel package for integrating MTN Mobile Money API with AI capabilities
License MIT
Homepage https://github.com/alvincoded/laravel-mtn-momo-ai
Informations about the package laravel-mtn-momo-ai
Laravel MTN MOMO AI
[](https://packagist.org/packages/alvincoded/laravel-mtn-momo-ai)
[](https://github.com/alvincoded/laravel-mtn-momo-ai/actions/workflows/php-cs-fixer.yml)
[](https://github.com/alvincoded/laravel-mtn-momo-ai/actions/workflows/security.yml)
A powerful Laravel package that integrates MTN Mobile Money API with AI capabilities, providing intelligent transaction analysis, fraud detection, and more!
Features ๐
- ๐ณ Seamless integration with MTN MOMO API (Collections, Disbursements, Remittances)
- ๐ง AI-powered transaction analysis using multiple LLM models (ChatGPT, Claude, Gemini)
- ๐ต๏ธ Intelligent fraud detection
- ๐ Cash flow forecasting
- ๐ Smart retry mechanisms for failed transactions
- ๐ Natural language command parsing
- ๐ Automated reporting
- โฑ๏ธ Smart disbursement scheduling
- ๐จ Anomaly detection in transactions
- ๐ง API call optimization
Prerequisites
Before getting started with the MTN MOMO AI package, you'll need:
MTN MOMO API Requirements
-
MTN MOMO Developer Account
- Sign up at MTN MOMO Developer Portal
- Complete the verification process
- Store your API credentials safely
- API Subscription
- Subscribe to one or more MTN MOMO products:
- Collections
- Disbursements
- Remittances
- Get your Subscription Key from your developer profile
- Subscribe to one or more MTN MOMO products:
AI Model Requirements
You'll need at least one of these API keys:
- OpenAI API Key (for ChatGPT)
- Anthropic API Key (for Claude)
- Google Gemini API Key (for Gemini)
- Deepseek API Key (for Deepseek)
System Requirements
- PHP 8.1 or higher
- Laravel 9.x|10.x|11.x
- Composer
Environment Setup
Make sure your server/hosting environment:
- Allows outbound HTTPS connections
- Has sufficient memory for AI operations
- Supports background job processing (for notifications)
Installation ๐ฆ
Requires PHP 8.1+
You can install the package via composer:
After installation, run the package's installation command:
This command will guide you through the setup process, including publishing the configuration file and setting up your environment variables.
Configuration โ๏ธ
The package configuration file will be published to config/mtn-momo-ai.php
. You can modify the settings there or use environment variables in your .env
file.
Environment Variables
Usage ๐ ๏ธ
Basic Usage
AI-Enhanced Features
Currency Configuration
Transaction Analysis
Smart Retry Mechanism
Error Handling
The package includes comprehensive error handling:
AI Model Selection
API Reference ๐
MTN MOMO API Methods
requestToPay($amount, $currency, $externalId, $partyId, $payerMessage, $payeeNote)
getCollectionTransactionStatus($referenceId)
getAccountBalance()
getAccountHolder($accountHolderId, $accountHolderIdType)
transfer($amount, $currency, $externalId, $payee, $payerMessage, $payeeNote)
getDisbursementTransactionStatus($referenceId)
remit($amount, $currency, $externalId, $payee, $payerMessage, $payeeNote)
getRemittanceTransactionStatus($referenceId)
AI-Enhanced Methods
analyzeTransaction($transactionId)
detectFraud($transactionData)
smartRetry($failedTransaction)
forecastCashFlow($timeframe)
parseNaturalLanguageCommand($command)
generateReport($startDate, $endDate)
scheduleDisbursement($amount, $recipient)
monitorTransactions()
optimizeApiCalls($endpoint)
handleError($errorCode, $context)
Testing ๐งช
To run the package tests:
Contributing ๐ค
Contributions are welcome! Please see CONTRIBUTING.md for details.
Security ๐
Please review our security policy on how to report security vulnerabilities.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits ๐
- OpenAI PHP by Nuno Maduro
- Anthropic Laravel by Mozex
- Gemini PHP for Laravel by Fatih AYDIN
- DeepSeek PHP Client by Omar AlAlwi
License ๐
The MIT License (MIT). Please see License File for more information.
Support ๐ฌ
For support, please open an issue in the GitHub repository.
All versions of laravel-mtn-momo-ai with dependencies
deepseek-php/deepseek-php-client Version ^1.0
google-gemini-php/laravel Version ^1.0
guzzlehttp/guzzle Version ^7.9
illuminate/support Version ^9.0|^10.0|^11.0
laravel/framework Version ^9.46.0|^10.34.2|^11.23.5
mozex/anthropic-laravel Version ^1.1
openai-php/client Version ^0.10.3