supermercato24/soldo-php-sdk

This package is abandoned and no longer maintained. The author suggests using the https://github.com/everli/soldo-php-sdk package instead.

Unofficial PHP SDK to work with Soldo API

4.0.0 2021-04-19 14:46 UTC

This package is auto-updated.

Last update: 2024-09-13 15:39:45 UTC


README

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