PHP code example of setono / dao-php-sdk
1. Go to this page and download the library: Download setono/dao-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 / dao-php-sdk example snippets
use Buzz\Client\Curl;
use Nyholm\Psr7\Factory\Psr17Factory;
use Setono\DAO\Client\Client;
$psr17Factory = new Psr17Factory();
$httpClient = new Curl($psr17Factory);
$client = new Client($httpClient, $psr17Factory, 'INSERT CUSTOMER ID', 'INSERT PASSWORD');
$client->get('/DAOPakkeshop/FindPakkeshop.php', [
'postnr' => '9000', // zip code
'adresse' => 'Hansenvej 10', // address
'antal' => 10, // number of results to return
]);
bash
$ composer