PHP code example of avido / billink-api-php-client
1. Go to this page and download the library: Download avido/billink-api-php-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/ */
avido / billink-api-php-client example snippets
use Avido\BillinkApiClient\BillinkClient;
use Monolog\Logger;
use Monolog\Handler\StreamHandler;
$username = '--YOUR USERNAME--';
$client_id = '--YOUR CLIENT ID--';
$log = new StreamHandler('billink.log', LOGGER::DEBUG);
$client = new BillinkClient($username, $client_id, [$log=null]);
// test mode true|false
$client->setTestMode(true);
php -S 127.0.0.1:8081
composer
xml
<phpunit>
...
<php>
<env name="PHP_USERNAME" value="apitest"/>
<env name="PHP_CLIENTID" value="d108a0f1bc5bc4618f150fa95cd6dc537bd774f0"/>
<env name="API_WORKFLOW" value="1" />
<env name="API_BACKDOOR" value="1" />
</php>
</phpunit>