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 4d 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 14% 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://www.gravatar.com/avatar/0846cbc9c849780ef19924cd8bba6e6d2c2dffbcd15d9aa19ce305ab05a0c032?d=identicon)[postnummersok](/maintainers/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

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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