saulmoralespa / tigo-money-api-php
Tigo Money API PHP SDk
1.0.1
2020-11-03 13:41 UTC
Requires
- php: >=7.1
- guzzlehttp/guzzle: ^7.0
Requires (Dev)
- phpunit/phpunit: 6.*
- vlucas/phpdotenv: ^5.1
This package is auto-updated.
Last update: 2025-03-29 00:43:26 UTC
README
Installation
Use composer package manager
composer require saulmoralespa/tigo-money-api-php
// ... please, add composer autoloader first include_once __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php'; // import client class use TigoMoney\Client; $clientId = getenv('API_KEY'); //Unique client identifier assigned during the registration process with Tigo Money $clientSecret = getenv('API_SECRET'); //Secret password provided during the registration process with Tigo Money $agentAccount = getenv('AGENT_ACCOUNT'); $agentPin = getenv('AGENT_PIN'); $agentName = getenv('AGENT_NAME'); $tigoMoney = new Client($clientId, $clientSecret, $agentAccount, $agentPin, $agentName); $tigoMoney->sandboxMode(true); //true for tests, false for production