1. Go to this page and download the library: Download sverraest/revolut-php library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
sverraest / revolut-php example snippets
use RevolutPHP\Client;
$client = new Client($accessToken);
use RevolutPHP\Client;
$client = new Client($accessToken, 'sandbox');
use RevolutPHP\Client;
$options = ['headers' => ['foo' => 'bar']];
$client = new Client($accessToken, 'sandbox', $options);
use RevolutPHP\Client;
$client = new Client($accessToken);
$accounts = $client->accounts->all();
use RevolutPHP\Client;
$client = new Client($accessToken);
$account = $client->accounts->get('foo');
use RevolutPHP\Client;
$client = new Client($accessToken);
$account = $client->accounts->getDetails('foo');
use RevolutPHP\Client;
$client = new Client($accessToken);
$counterparty = $client->counterparties->create(['profile_type' => 'business', 'name' => 'TestCorp' , 'email' => '[email protected]']);
use RevolutPHP\Client;
$client = new Client($accessToken);
$client->counterparties->delete('foo');
use RevolutPHP\Client;
$client = new Client($accessToken);
$counterparties = $client->counterparties->all();
use RevolutPHP\Client;
$client = new Client($accessToken);
$counterparty = $client->counterparties->get('bar');