1. Go to this page and download the library: Download dfcplc/dfcapi-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/ */
dfcplc / dfcapi-php example snippets
$dfcapi = new Dfcapi();
$response = $dfcapi->CheckApiKey('TEST-TEST-TEST-TEST','a94a8fe5ccb19ba61c4c0873d391e987982fbbd3');
var_dump($response); // API Credential Check Response (true or false)
$dfcapi = new Dfcapi();
$dfcapi->getErrors(); //Array of returned errors from the API Call
$dfcapi->getResponseCode(); //HTTP Response Code (200 = OK)
$dfcapi->getResponseBody(); //HTTP Response Body (Object)
$dfcapi->getResponseBodyRaw(); //HTTP Response Body (Raw)
$dfcapi->getResponseHeaders(); //HTTP Response Headers (Array)