dockflow / dockflow-sdk
Client for the Dockflow API v3: upstream events, tradeflows, documents and the widget.
1.0.1
2026-11-10 08:23 UTC
Requires
- php: ^8.1
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.3 || ^8.0
- guzzlehttp/psr7: ^1.7 || ^2.0 || ^3.0
- psr/http-client: ^1.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.5
- phpunit/phpunit: ^8.0 || ^9.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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
- Guides and examples: https://docs.dockflow.com/api/sdk/
- OpenAPI 3.1 spec: https://api.dockflow.com/v3/openapi.json
- All five SDKs (TypeScript, Python, C#, Java, PHP): https://github.com/Dockflow/dockflow-sdks
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