1. Go to this page and download the library: Download rbech/economic-api 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/ */
rbech / economic-api example snippets
use \RBech\Economic\Economic;
$economic = new Economic('your-app-secret', 'your-grant-token');
if ($economic->success()) {
print_r($result);
} else {
//getLastError will return a simple string
echo $economic->getLastError();
//getErrors returns an array of errors returned
print_r($economic->getErrors());
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.