PHP code example of lxlang / tankerkoenig-php-client
1. Go to this page and download the library: Download lxlang/tankerkoenig-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/ */
lxlang / tankerkoenig-php-client example snippets
composer
// get over
$gasStations = $apiClient->search(
50.538472, //lat
8.649647, //lng
$apiClient::TYPE_E10 //your type of fuel
);
//echo results for testing
print_r($gasStations);