-
For detailed instructions on getting started with the MYMOID PHP API SDK, please refer to our developer's portal getting started.
-
For a complete reference of the API, please refer to our API reference.
Prerequisites: Ensure PHP 8.1 or higher is installed on your system, if you have PHP 7 please follow the manually steps.
To install the SDK in your project, you need have installed Composer.
Command: Run the following Composer command:
composer require mymoid/api
Or, if you prefer, you could do it manually following these steps:
-
Repository Cloning: Begin by cloning this repository to your local machine, if you have PHP 7 use this repository.
-
Navigation: Enter the directory of the cloned repository using your command line interface of choice.
-
Dependency Installation: Execute the command
composer install
to install all necessary dependencies.
-
Exploring Examples: Delve into the "examples" folder where a treasure trove of demonstration awaits.
-
Configuration: Each example file requires configuration of specific parameters. Dive into the code, tweak as needed, and ensure to save your changes.
-
Execution: Finally, unleash the power of the SDK by executing each example with the command
php example_file_name.php
. For instance, if you're looking to create a payment, invokephp createpayment.php
. Don't forget, if you're at the root directory of the cloned repository, prepend/examples/
to the file name, like so:php /examples/createpayment.php
.