PHP code example of setono / post-nord-php-sdk

1. Go to this page and download the library: Download setono/post-nord-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 / post-nord-php-sdk example snippets


use Setono\PostNord\Client\Client;
use Setono\PostNord\Request\Query\ServicePoints\NearestByAddressQuery;

NearestByAddress(NearestByAddressQuery::create(
    'Street name',
    'Street number',
    'Postal code',
    'City',
    'Country code',
    numberOfServicePoints: 10,
));
bash
composer