Skip to content

Latest commit

 

History

History
66 lines (49 loc) · 2.88 KB

README.md

File metadata and controls

66 lines (49 loc) · 2.88 KB

Soldo SDK for PHP

An unofficial SDK to work with the Soldo API

Contacts

In case you're interested in using the Soldo API, please contact them so they can support you in integrating them in your existing system.

Prerequisites

  • PHP 5.5 or above
  • curl extension enabled

Usage

First of all instantiate a new Soldo object with your credentials:

require_once __DIR__ . '/vendor/autoload.php';

$soldo = new \Soldo\Soldo([
    'client_id' => 'Eu97aMWTV3ta9AchozCozGn15XiX6t5x',
    'client_secret' => 'msNE5I1BnSkWBHPVRJDMYqKvTKRfCS4a',
]);

Examples

Tests

  1. Composer is a prerequisite for running the tests. Install composer globally, then run composer install to install required files.
  2. Create tests/SoldoTestCredentials.php from tests/SoldoTestCredentials.php.dist and edit it to add your demo environment credentials.
  3. The tests can be executed by running this command from the root directory:
$ ./vendor/bin/phpunit