sparkplug / momoapi-php Goto Github PK
View Code? Open in Web Editor NEWMTN MoMo API Library for PHP
License: MIT License
MTN MoMo API Library for PHP
License: MIT License
[RuntimeException]
No composer.json present in the current directory, this may be the cause of the following exception.
[InvalidArgumentException]
Could not find a version of package sparkplug/momoapi-php matching your minimum-stability (stable). Require it with
an explicit version constraint allowing its desired stability.
require [--dev] [--prefer-source] [--prefer-dist] [--fixed] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--update-with-all-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] []...
We shall need to change the package name to mtn-momo
to ensure naming consistency across the different ecosystems.
This library doesn't currently support the Remittances
API. We need to add a module to support remittances. It should support the following operations:
Reference
Need to add a contributing guide
Problem
Most of the code currently in master
is not tested. This means it will be hard to detect when this library starts to fail.
Solution
To ensure that the library behaves as expected, we need to add tests.
Tasks
how do I get API user and password from Momopay live / production environment
Is your feature request related to a problem? Please describe.
The library needs to throw custom errors depending on what errors are returned by MTN
Describe the solution you'd like
We should add custom error classes and throw them when the corresponding error occurs
Tasks
Is your feature request related to a problem? Please describe.
Currently, we don't have any validation to ensure users are invoking functions with the right parameters. The only validation we get is from the API. Ideally, we should identify errors and fail fast before they reach the API
Describe the solution you'd like
We need to add assertions on functions and constructors to ensure that the correct information is being given.
We need to add CI to facilitate automation of testing and publishing. We shall use Travis CI.
For the start, the CI should publish to Composer
when a PR is reviewed and merged to master.
Progress
Composer
token and github token to Travis CI secretsSome of the variables required to initialize the library are global, while others are product specific.
The global variables are;
The product specific ones are;
Describe the solution you'd like
We should initialize the library with global variables and then initialize the product clients with product-specific variables.
The client does not fully support the Collections
API. We need to add a module to support the following operations:
Reference
The library does not fully support the Disbursements
API. We need to add a module to support disbursements. The module must support the following operations:
Reference
The README needs to be updated to reflect the changes that are being made and will be made in the production library.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.