PHPackages                             postnummersok/client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. postnummersok/client

ActiveLibrary[API Development](/categories/api)

postnummersok/client
====================

API client for PostnummerSök.

0140PHPCI failing

Since Sep 23Pushed 6y agoCompare

[ Source](https://github.com/postnummersok/php-client)[ Packagist](https://packagist.org/packages/postnummersok/client)[ RSS](/packages/postnummersok-client/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

PostnummerSök API Client for PHP
================================

[](#postnummersök-api-client-for-php)

This is an API Client for communicating with PostnummerSök using PHP.

Use With Composer
-----------------

[](#use-with-composer)

(We will just assume you have composer installed for your project)

1. Open a command-line interface and navigate to your project folder.
2. Run the following command in your command-line interface:

    composer require postnummersok/client:dev-master

Composer will now autoload Client.php when you create the class object:

```
    $postnummersok = new PostnummerSok\Client();

```

Use Without Composer
--------------------

[](#use-without-composer)

Manually include Client.php in your script before initiating the client.

```
    require_once 'path/to/Client.php';

    $postnummersok = new PostnummerSok\Client();

```

Example Code (More examples in the examples/ folder)
----------------------------------------------------

[](#example-code-more-examples-in-the-examples-folder)

```
require_once 'path/to/Client.php';

try {

  $postnummersok = new PostnummerSok\Client();

  $postnummersok->setCustomerId(12345)
                ->setApiKey('0123456789abcdef0123456789abcdef');

  $request = [
    'postcode' => '11122',
    'country_code' => 'SE',
  ];

  $result = $postnummersok->Lookup($request);

} catch(Exception $e) {
  die('An error occured: '. $e->getMessage() . PHP_EOL . PHP_EOL
    . $postnummersok->getLastLog());
}

```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/45219353?v=4)[postnummersok](/maintainers/postnummersok)[@postnummersok](https://github.com/postnummersok)

---

Top Contributors

[![postnummersok](https://avatars.githubusercontent.com/u/45219353?v=4)](https://github.com/postnummersok "postnummersok (5 commits)")

### Embed Badge

![Health badge](/badges/postnummersok-client/health.svg)

```
[![Health](https://phpackages.com/badges/postnummersok-client/health.svg)](https://phpackages.com/packages/postnummersok-client)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M19](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k12](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
