Download the PHP
package geekabel/mobile-money-payment without Composer
On this page you can find all versions of the php package
geekabel/mobile-money-payment. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
Vendor geekabel Package mobile-money-payment Short Description A flexible and extensible PHP package for integrating mobile money payment services, supporting Tmoney and Flooz payment providers. License
MIT
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.
Informations about the package mobile-money-payment
Mobile Money Payment Package
Overview
The Mobile Money Payment package provides a flexible and extensible solution for integrating mobile money payment services into PHP applications. It currently supports Tmoney and Flooz payment services, with an architecture that allows easy addition of new payment providers.
Features
Support for multiple payment services (currently Tmoney and Flooz)
Extensible architecture using the Strategy pattern
Standardized payment responses across different services
Flexible Flooz counter management system
Easy integration with various PHP applications, including Symfony
Requirements
PHP 8.2 or higher
Symfony HTTP Client
Installation
Install the package via Composer:
Basic Usage
Setting up the Payment Manager
Making a Payment
Checking Payment Status
Extending the Package
Adding a New Payment Service
Create a new class that implements PaymentServiceInterface:
Add the new service to the Payment Manager:
Custom Flooz Counter Manager
Create a class that implements FloozCounterManagerInterface:
Use the custom manager when creating the Flooz service:
Advanced Usage
Error Handling
The package uses PaymentException for specific payment-related errors. It's recommended to catch these exceptions:
Logging
The package accepts a PSR-3 compatible logger. You can provide your own logger implementation for custom logging behavior:
Symfony Integration
For detailed instructions on how to integrate this package with Symfony 6.4, 7.0, 7.1, and superior versions, please refer to our Symfony Integration Guide.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This package is open-sourced software licensed under the MIT license.
All versions of mobile-money-payment with dependencies
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 geekabel/mobile-money-payment contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.