1. Go to this page and download the library: Download plisio/plisio-api-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/ */
plisio / plisio-api-php example snippets
interface InteractionInterface
{
/**
* @throws Throwable on errors (If silent mode turn off)
* @return null on errors (If silent mode turn on)
* @return BalanceApiResponse on success
*/
public function getBalance(string $currency): ?BalanceApiResponse;
/**
* @throws Throwable on errors (If silent mode turn off)
* @return null on errors (If silent mode turn on)
* @return OperationApiResponse on success
*/
public function getOperationById(string $id): ?OperationApiResponse;
/**
* @throws Throwable on errors (If silent mode turn off)
* @return null on errors (If silent mode turn on)
* @return CommissionApiResponse on success
*/
public function getCommission(CommissionQuery $query): ?CommissionApiResponse;
/**
* @throws Throwable on errors (If silent mode turn off)
* @return null on errors (If silent mode turn on)
* @return CryptocurrencyApiResponse on success
*/
public function getCurrencyInfoByFiat(string $fiat): ?CryptocurrencyApiResponse;
/**
* @throws Throwable on errors (If silent mode turn off)
* @return null on errors (If silent mode turn on)
* @return FeePlanApiResponse on success
*/
public function getFeePlanByPsyscid(string $psyscid): ?FeePlanApiResponse;
/**
* @throws Throwable on errors (If silent mode turn off)
* @return null on errors (If silent mode turn on)
* @return WithdrawApiResponse on success
*/
public function withdraw(WithdrawQuery $withdrawQuery): ?WithdrawApiResponse;
/**
* @throws Throwable on errors (If silent mode turn off)
* @return null on errors (If silent mode turn on)
* @return InvoiceWhiteLabelResponse on success
*/
public function createInvoice(InvoiceQuery $invoiceQuery): ?InvoiceWhiteLabelResponse;
/**
* @throws Throwable on errors (If silent mode turn off)
* @return FeeApiResponse on success
* @return null on errors (If silent mode turn on)
*/
public function getFee(FeeQuery $feeQuery): ?FeeApiResponse;
}