{"id":25839680,"url":"https://github.com/netresearch/dhl-sdk-api-unified-tracking","last_synced_at":"2025-08-24T11:36:00.633Z","repository":{"id":56967654,"uuid":"227635579","full_name":"netresearch/dhl-sdk-api-unified-tracking","owner":"netresearch","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-20T09:09:52.000Z","size":143,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-02-20T09:36:55.218Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/netresearch.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-12T15:16:46.000Z","updated_at":"2025-02-20T08:46:49.000Z","dependencies_parsed_at":"2022-08-21T09:50:50.533Z","dependency_job_id":null,"html_url":"https://github.com/netresearch/dhl-sdk-api-unified-tracking","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netresearch%2Fdhl-sdk-api-unified-tracking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netresearch%2Fdhl-sdk-api-unified-tracking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netresearch%2Fdhl-sdk-api-unified-tracking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netresearch%2Fdhl-sdk-api-unified-tracking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/netresearch","download_url":"https://codeload.github.com/netresearch/dhl-sdk-api-unified-tracking/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241317607,"owners_count":19943199,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-01T04:34:02.661Z","updated_at":"2025-03-01T04:34:03.175Z","avatar_url":"https://github.com/netresearch.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DPDHL Group unified shipment tracking API SDK\n\nThe Shipment Tracking API provides up-to-the-minute shipment status reports. Users of this API can:\n\n- Retrieve tracking information for shipments.\n- Identify the Deutsche Post DHL (DPDHL) service provider involved with the shipment.\n- Verify DPDHL is using the correct delivery address. This can reduce the number of misdelivered shipments.\n\n## Requirements\n\n### System Requirements\n\n- PHP 8.1+ with JSON extension\n\n### Package Requirements\n\n- `netresearch/jsonmapper`: Mapper for deserialization of JSON response messages into PHP objects\n- `php-http/discovery`: Discovery service for HTTP client and message factory implementations\n- `php-http/httplug`: Pluggable HTTP client abstraction\n- `php-http/logger-plugin`: HTTP client logger plugin for HTTPlug\n- `psr/http-client`: PSR-18 HTTP client interfaces\n- `psr/http-factory`: PSR-7 HTTP message factory interfaces\n- `psr/http-message`: PSR-7 HTTP message interfaces\n- `psr/log`: PSR-3 logger interfaces\n\n### Virtual Package Requirements\n\n- `psr/http-client-implementation`: Any package that provides a PSR-18 compatible HTTP client\n- `psr/http-factory-implementation`: Any package that provides PSR-7 compatible HTTP message factories\n- `psr/http-message-implementation`: Any package that provides PSR-7 HTTP messages\n\n### Development Package Requirements\n\n- `fig/log-test`: PSR-3 logger implementation for testing purposes\n- `nyholm/psr7`: PSR-7 HTTP message factory \u0026 message implementation\n- `phpunit/phpunit`: Testing framework\n- `php-http/mock-client`: HTTPlug mock client implementation\n- `phpstan/phpstan`: Static analysis tool\n- `rector/rector`: Automatic refactoring tool to help with PHP upgrades\n- `squizlabs/php_codesniffer`: Static analysis tool\n- `symfony/finder`: file utility for loading pre-recorded web service responses\n\n## Installation\n\n```bash\n$ composer require dhl/sdk-api-unified-tracking\n```\n\n## Uninstallation\n\n```bash\n$ composer remove dhl/sdk-api-unified-tracking\n```\n\n## Testing\n\n```bash\n$ ./vendor/bin/phpunit -c test/phpunit.xml\n```\n\n## Static code analysis\n\n```bash\n$ ./vendor/bin/phpstan --level=7 analyze ./src/\n```\n\n```bash\n$ ./vendor/bin/phpcs --standard=PSR12 src/ test/\n```\n\n## Features\n\nThe DPDHL Group unified shipment tracking API SDK supports the following features:\n\n* Fetch advanced information about a trackable shipment\n\n\n### Tracking Service\n\nFetch information about shipment status of a trackable shipment no matter which business unit of DHL is actually processing the shipment.\nAdditional search parameters can be provided to narrow down possible search results.\n\n#### Public API\n\nThe library's components suitable for consumption comprise\n\n* service:\n  * service factory\n  * tracking service\n* data transfer objects:\n  * track information with detailed shipment events\n\n#### Usage\n\n```php\n\u003c?php\n$consumerKey = 'Your application consumer key';\n$logger = new \\Psr\\Log\\NullLogger();\n$defaultTimeZone = new \\DateTimeZone('Europe/Berlin'); // or date_default_timezone_get()\n$trackingNumber = '9876543210';\n\n$serviceFactory = new \\Dhl\\Sdk\\UnifiedTracking\\Service\\ServiceFactory();\n$service = $serviceFactory-\u003ecreateTrackingService($consumerKey, $logger, $defaultTimeZone);\n\n$response = $service-\u003eretrieveTrackingInformation($trackingNumber);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetresearch%2Fdhl-sdk-api-unified-tracking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetresearch%2Fdhl-sdk-api-unified-tracking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetresearch%2Fdhl-sdk-api-unified-tracking/lists"}