setono/post-nord-php-sdk

A PHP SDK for the PostNord API

Maintainers

πŸ‘ loevgaard

Package info

github.com/Setono/post-nord-php-sdk

pkg:composer/setono/post-nord-php-sdk

Statistics

Installs: 31 646

Dependents: 1

Suggesters: 0

Stars: 1

Open Issues: 1

v2.0.0-alpha.3 2024-06-10 12:47 UTC

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 68a77d7fecabf36adc04410cafd4f98eddf2836d

  • Joachim LΓΈvgaard <joachim.woop@loevgaard.dk>

This package is auto-updated.

Last update: 2026-06-10 16:58:45 UTC


README

πŸ‘ Latest Version
πŸ‘ Software License
πŸ‘ Build Status
πŸ‘ Code Coverage
πŸ‘ Mutation testing

A PHP SDK for the PostNord API.

Installation

Open a command console, enter your project directory and execute the following command to download the latest stable version of this library:

composer require setono/post-nord-php-sdk

Usage

Here is an example showing you can get the nearest service points.

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

require_once __DIR__ . '/../vendor/autoload.php';

$client = new Client('b09ff56c6a0344768d5afaaec595b2fb');

$servicePoints = $client->servicePoints()->getNearestByAddress(NearestByAddressQuery::create(
 'Street name',
 'Street number',
 'Postal code',
 'City',
 'Country code',
 numberOfServicePoints: 10,
));

Framework integration