dev-lancer/von-halsky-php-sdk

Independent PHP SDK for the InPost Von Halsky API

Maintainers

Package info

github.com/DeveloperLancer/von-halsky-php-sdk

pkg:composer/dev-lancer/von-halsky-php-sdk

Transparency log

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 1

dev-main 2026-08-28 18:12 UTC

This package is auto-updated.

Last update: 2026-08-28 18:14:23 UTC


README

An independent PHP 8.1+ SDK for the InPost Von Halsky API. It provides typed request objects, immutable response models, OAuth 2.0 helpers, PSR-18 HTTP integration, and resource clients for organizations, catalogue data, offers, attachments, orders, returns, refunds, and claims.

This is not an official InPost product and is not affiliated with or endorsed by InPost. InPost and Von Halsky are trademarks of their respective owners.

Status

The SDK implements 40 current operations across organizations, categories, offers, attachments, orders, returns, and claims. It intentionally excludes two deprecated upstream operations. It is not yet published on Packagist, so the repository is a development snapshot rather than a release promise.

Requirements

  • PHP 8.1 or newer;
  • Composer 2;
  • the JSON extension.

Install

After the first tagged release is published, install the package with:

composer require dev-lancer/von-halsky-php-sdk

Until then, use a Composer VCS repository or clone this repository for development. See Installation and first client.

First API call

For an existing access token, create a client with the default secure Symfony transport and list the organizations available to that token:

<?php

declare(strict_types=1);

use DateTimeImmutable;
use DevLancer\VonHalsky\Auth\AccessToken;
use DevLancer\VonHalsky\Auth\StaticTokenProvider;
use DevLancer\VonHalsky\Environment\Environment;
use DevLancer\VonHalsky\VonHalskyClient;

$client = VonHalskyClient::create(
    new StaticTokenProvider(new AccessToken('access-token', new DateTimeImmutable('+5 minutes'))),
    Environment::stage(),
);

$organizations = $client->organizations()->list()->data;

For production integrations, obtain and rotate tokens with the OAuth guide; never hard-code or log real credentials.

Documentation

Choose the documentation language: English or Polish. Both versions offer focused reading paths for a first integration, OAuth, catalogue and offers, order and post-sale processing, and production reliability.

License

The SDK source code is available under the MIT License.