1. Go to this page and download the library: Download coingate/coingate-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/ */
coingate / coingate-php example snippets
$client = new \CoinGate\Client('YOUR_API_TOKEN');
$client = new \CoinGate\Client('YOUR_API_TOKEN', true);
$client = new CoinGate\Client();
// if needed you can set configuration parameters later
$client->setApiKey('YOUR_API_TOKEN');
$client->setEnvironment('sandbox');
$client->getCurrencies();
// Crypto + Native + Merchant Pay
$client->getCheckoutCurrencies();
// get Merchant Pay currencies only
$client->getMerchantPayCurrencies();
// get Merchant Receive currencies only
$client->getMerchantPayoutCurrencies();
$client->getPlatforms();
// set up your tweaked Curl client
$curl = new \CoinGate\HttpClient\CurlClient();
$curl->setTimeout(10);
$curl->setConnectTimeout(5);
// tell CoinGate Library to use the tweaked Curl client
\CoinGate\Client::setHttpClient($curl);
// use the CoinGate API client as you normally would