PHP code example of setono / coolrunner-php-sdk
1. Go to this page and download the library: Download setono/coolrunner-php-sdk 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/ */
setono / coolrunner-php-sdk example snippets
use Setono\CoolRunner\Client\Client;
use Setono\CoolRunner\DTO\Collection;
use Setono\CoolRunner\DTO\Servicepoint;
borgvej 60 4. th.', '9400', 'Nørresundby')
;
foreach ($servicepoints as $servicepoint) {
echo $servicepoint->name . "\n";
echo $servicepoint->address->street . "\n";
echo $servicepoint->address->zipCode . ' ' . $servicepoint->address->city . "\n";
echo $servicepoint->address->countryCode . "\n\n";
}
use CuyZ\Valinor\Cache\FileSystemCache;
use CuyZ\Valinor\MapperBuilder;
use Setono\CoolRunner\Client\Client;
use Setono\CoolRunner\DTO\Collection;
use Setono\CoolRunner\DTO\Servicepoint;
bash
composer