supermercato24 / soldo-php-sdk
Unofficial PHP SDK to work with Soldo API
Installs: 124
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 25
Forks: 0
Open Issues: 0
pkg:composer/supermercato24/soldo-php-sdk
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 installto install required files. - Create
tests/SoldoTestCredentials.phpfromtests/SoldoTestCredentials.php.distand edit it to add your demo environment credentials. - The tests can be executed by running this command from the root directory:
$ ./vendor/bin/phpunit