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
Requires
- php: >= 5.5
- guzzlehttp/guzzle: ~6.0
- psr/log: ^1.0.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ~2.2
- phpunit/phpunit: ^5.7
- symfony/var-dumper: ~3.3
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
-
Configuration
-
Retrieve collections
-
Retrieve resource
-
Money transfer
-
Card rules
-
Webhooks
Tests
- Composer is a prerequisite for running the tests. Install composer globally, then run
composer install
to install required files. - Create
tests/SoldoTestCredentials.php
fromtests/SoldoTestCredentials.php.dist
and edit it to add your demo environment credentials. - The tests can be executed by running this command from the root directory:
$ ./vendor/bin/phpunit