PHPackages                             jhoffland/natec-php-sdk - 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. jhoffland/natec-php-sdk

ActiveLibrary[API Development](/categories/api)

jhoffland/natec-php-sdk
=======================

Natec Klantportaal API Client Library for PHP

1.0.0(2y ago)04MITPHPPHP &gt;=8.1

Since May 11Pushed 2y ago1 watchersCompare

[ Source](https://github.com/jhoffland/natec-php-sdk)[ Packagist](https://packagist.org/packages/jhoffland/natec-php-sdk)[ Docs](https://github.com/jhoffland/natec-php-sdk)[ RSS](/packages/jhoffland-natec-php-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (6)Versions (2)Used By (0)

Natec Klantportaal API Client Library for PHP
=============================================

[](#natec-klantportaal-api-client-library-for-php)

[![Run tests](https://github.com/jhoffland/natec-php-sdk/actions/workflows/testing.yml/badge.svg)](https://github.com/jhoffland/natec-php-sdk/actions/workflows/testing.yml)[![codecov](https://camo.githubusercontent.com/846c46daab5481cea5e01cb22ab76ea3da718b95ad3256608bff922d29f10700/68747470733a2f2f636f6465636f762e696f2f67682f6a686f66666c616e642f6e617465632d7068702d73646b2f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d4c32514b4b5459354734)](https://codecov.io/gh/jhoffland/natec-php-sdk)

Usage
-----

[](#usage)

```
use NatecSdk\Client;
use NatecSdk\Resources\Types\AssortmentUpdateType;
use NatecSdk\Resources\AssortmentUpdate;
use NatecSdk\Resources\Invoice;
use NatecSdk\Resources\Shipment;

$apiToken = 'xxx';
$client = new Client($apiToken);

// Get an iterator with all resources, matching the filter (query).
$assortmentUpdates = AssortmentUpdate::get($client, [
    'type' => AssortmentUpdateType::PRODUCT_EXPECTED_ARRIVAL->value
]);

foreach($assortmentUpdates as $assortmentUpdate) {
    var_dump($assortmentUpdate);
}

// Get one resource, by the primary key value (id). The primary key for e.g. invoices is documentNo.
var_dump(Invoice::find($client, 'GVFN22-12345'));

// Save an order confirmation PDF file.
$confirmationFile = fopen(__DIR__ . sprintf('/confirmation-%s.pdf', $order->no), 'w+');
$order->confirmation($client, $confirmation);

// Make an API request
var_dump($client->get(Shipment::endpoint()));
var_dump($client->post('/orders', [ 'reference' => 'Example order' ]));
```

Contributing
------------

[](#contributing)

Feel free to contribute to this library. Contribute by forking the GitHub repository and opening a pull request. When opening a pull request, please make sure that:

- The pull request has a clear title;
- The pull request does not consist of too many (unnecessary/small) commits;
- Tests are added or updated to test the added/improved functionality;
- The code complies to the coding standard, passes the code analysis and passes all the tests (`composer run-tests`):
    - PHP\_CodeSniffer (`vendor/bin/phpcs`);
    - PHPStan (`vendor/bin/phpstan`);
    - PHPUnit (`vendor/bin/phpunit`).

ToDo's
------

[](#todos)

- Give every assertion in the tests a descriptive message.
- Add a test for `NatecSdk\Client::getPdf()` and `NatecSdk\Resources\Order::confirmation()`
- Add a test for every resource?

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1094d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7c1e0df0ab69d3bf5d26b763af3ac8954de1090b90613fdbab6f745b080c96ff?d=identicon)[jhoffland](/maintainers/jhoffland)

---

Top Contributors

[![jhoffland](https://avatars.githubusercontent.com/u/33959957?v=4)](https://github.com/jhoffland "jhoffland (6 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/jhoffland-natec-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/jhoffland-natec-php-sdk/health.svg)](https://phpackages.com/packages/jhoffland-natec-php-sdk)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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