itdev-pro/moneygate-php

There is no license information available for the latest version (dev-main) of this package.

PHP-SDK library for work with Moneygate API

dev-main 2024-09-19 09:08 UTC

This package is auto-updated.

Last update: 2025-08-16 13:00:13 UTC


README

social_preview

PHP SDK to interact with Moneygate API

Moneygate API documentation available here

Developer Documentation

The docs folder provides detailed guides for using this library.

Installation

This library can be found on Packagist. The recommended way to install this is through composer.

$composer require itdev-pro/moneygate-php

Quick start

<?php 
use Dotenv\Dotenv;
use sdk_moneygate\Auth;
use sdk_moneygate\Balance;

class BalanceExample
{
    public function getBalanceExample(): array
    {
        $dotenv = Dotenv::createImmutable(__DIR__);
        $dotenv->load();

        $auth = new Auth($_ENV['RIGHT_PRIVATE_KEY'], $_ENV['TOKEN']);

        $result = new Balance($auth, true);

        return $result;
    }
}
?>

Examples

Usage examples available here

Tests

vendor/bin/phpunit