1. Go to this page and download the library: Download v1p3r75/moov-money-api-sdk library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
v1p3r75 / moov-money-api-sdk example snippets
use MoovMoney\MoovMoneyAPI;
use MoovMoney\MoovMoneyAPIConfig;
$config = new MoovMoneyAPIConfig();
$config->setUsername('your_username')
->setPassword('your_password')
->setRequestTimeout(30) // en secondes
->useSandbox(true); // Active le mode sandbox (désactivez pour production)
$moovApi = new MoovMoneyAPI($config);
$config = new MoovMoneyAPIConfig();
// Activer le mode production
$config->useSandbox(false);
// Vérifier l'environnement actif
if ($config->isSandbox()) {
echo "Environnement actif : Sandbox";
} else {
echo "Environnement actif : Production";
}