Search by

dockflow / dockflow-sdk

dockflow

Client for the Dockflow API v3: upstream events, tradeflows, documents and the widget.

Package info

github.com/Dockflow/dockflow-php

Homepage

pkg:composer/dockflow/dockflow-sdk

Statistics

Installs: 8

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.1 2026-11-10 08:23 UTC

This package is auto-updated.

Last update: 2026-11-10 08:23:31 UTC


README

The official PHP client for the Dockflow API v3: container and shipment tracking events, tradeflows, documents and the tracking widget.

Install

composer require dockflow/dockflow-sdk

Quickstart

Create an API key in the Dockflow console. Production is https://api.dockflow.com; test against the UAT sandbox at https://uat.dockflow.com with a UAT key.

$config = Dockflow\Sdk\Configuration::getDefaultConfiguration()
    ->setHost('https://api.dockflow.com')
    ->setAccessToken(getenv('DOCKFLOW_KEY'));
$upstream = new Dockflow\Sdk\Api\UpstreamApi(new GuzzleHttp\Client(), $config);
$page = $upstream->getUpstream(tradeflow: 'PO4564268');

The four API classes are UpstreamApi, TradeflowsApi, DocumentsApi and WidgetApi.

Documentation

Versioning

Released automatically whenever the API changes. Versions follow semver: a breaking API change bumps the major version, everything else the minor or patch.

License

MIT