Skip to content

About

Dockflow API PHP SDK (read-only mirror; source: github.com/Dockflow/dockflow-sdks)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Dockflow API SDK for PHP

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

About

Dockflow API PHP SDK (read-only mirror; source: github.com/Dockflow/dockflow-sdks)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages