1. Go to this page and download the library: Download bobel/payeer-client 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/ */
bobel / payeer-client example snippets
$api = new PayeerClient(
id: 'bd443f00-092c-4436-92a4-a704ef679e24',
key: 'your_key');
$result = $api->isOk();
$webSocket = new WebSocketServer(
id: 'bd443f00-092c-4436-92a4-a704ef679e24',
key: 'your_key');
$webSocket->run();
// Get all rates
$result = $api->rates();
// Get rates by criteria
$result = $api->rates([
["BTC", "USD"],
["BTC", "RUB"]
]);