{"id":24199480,"url":"https://github.com/tredmann/dhl-php-sdk","last_synced_at":"2025-10-05T00:54:50.262Z","repository":{"id":12156027,"uuid":"14750192","full_name":"tredmann/dhl-php-sdk","owner":"tredmann","description":"Unofficial DHL PHP SDK based on the DHL API","archived":false,"fork":false,"pushed_at":"2015-02-03T15:55:31.000Z","size":116,"stargazers_count":34,"open_issues_count":4,"forks_count":14,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-09-21T23:42:18.298Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tredmann.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-11-27T15:02:37.000Z","updated_at":"2022-06-20T17:44:21.000Z","dependencies_parsed_at":"2022-09-23T04:33:27.029Z","dependency_job_id":null,"html_url":"https://github.com/tredmann/dhl-php-sdk","commit_stats":null,"previous_names":["tredmann/dhl-php-sdk","tobias-redmann/dhl-php-sdk"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tredmann/dhl-php-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tredmann%2Fdhl-php-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tredmann%2Fdhl-php-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tredmann%2Fdhl-php-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tredmann%2Fdhl-php-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tredmann","download_url":"https://codeload.github.com/tredmann/dhl-php-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tredmann%2Fdhl-php-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278395913,"owners_count":25979691,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-01-13T20:36:30.079Z","updated_at":"2025-10-05T00:54:50.234Z","avatar_url":"https://github.com/tredmann.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DHL PHP SDK\n\nThis *unofficial* library is wrapping some functions of the DHL SOAP API in order to easy create shipments and labels.\n\n## Motivation\n\nI had a lot of pain studying and programming the DHL SOAP API - just to wrap some bits in a lot of XML. There is a lot, but not very helpful, documentation to the API. So I decided to create some functions in an easy to use and understand library.\n\n## Prerequirements\n\nYou need a DHL developer account and - as long as you want to use the API in production systems - a DHL Intraship Account.\n\n## Usage\n\nFirst of all you need to create the Shipment Object with your credentials and some information from you as shipper.\n\n\t// your customer and api credentials from/for dhl\n\t$credentials = array(\n    \t'user' =\u003e 'geschaeftskunden_api', \n    \t'signature' =\u003e 'Dhl_ep_test1', \n    \t'ekp' =\u003e '5000000000',\n    \t'api_user'  =\u003e '',\n    \t'api_password'  =\u003e '',\n    \t'log' =\u003e true\n    );\n\n\n\t// your company info\n\t$info = array(\n    \t'company_name'    =\u003e 'Kindehochdrei GmbH',\n    \t'street_name'     =\u003e 'Clayallee',\n    \t'street_number'   =\u003e '241',\n    \t'zip'             =\u003e '14165',\n    \t'country'         =\u003e 'germany',\n    \t'city'            =\u003e 'Berlin',\n    \t'email'           =\u003e 'bestellung@kindhochdrei.de',\n    \t'phone'           =\u003e '01788338795',\n    \t'internet'        =\u003e 'http://www.kindhochdrei.de',\n    \t'contact_person'  =\u003e 'Nina Boeing'\n\t);\n\nWith these infos you can create the object:\n\n\t$dhl = new DHLBusinessShipment($credentials, $info);\n\t\nTo create a shipment and get the shipment number and label, just create the receiver details:\n\n\t// receiver details\n\t$customer_details = array(\n    \t'first_name'    =\u003e 'Tobias',\n    \t'last_name'     =\u003e 'Redmann',\n    \t'c/o'           =\u003e '',\n    \t'street_name'   =\u003e 'Hocksteinweg',\n    \t'street_number' =\u003e '11',\n    \t'country'       =\u003e 'germany',\n    \t'zip'           =\u003e '14165',\n    \t'city'          =\u003e 'Berlin'\n\t);\n\t\nAnd the create a shipment\n\n\t$response = $dhl-\u003ecreateNationalShipment($customer_details);\n\t\nAfter that, you can read the shipment infos\n\n\tif($response !== false) {\n  \n  \t\tvar_dump($response);\n  \n\t} else {\n  \n  \t\tvar_dump($dhl-\u003eerrors);\n  \n\t}\n\t\nThat's all. More will be hopefully coming soon.\n\n## Using the live API\n\nTo use it in live environment, please create the Client as none sandboxed:\n\n    $dhl = new DHLBusinessShipment($credentials, $info, false);\n\nYou need also to change the credentials a bit:\n\n\t// your customer and api credentials from/for dhl\n\t$credentials = array(\n    \t'user' =\u003e 'geschaeftskunden_api',\n    \t'signature' =\u003e 'Dhl_ep_test1',\n    \t'ekp' =\u003e '5000000000',\n    \t'api_user'  =\u003e '',\n    \t'api_password'  =\u003e '',\n    \t'log' =\u003e true\n    );\n\n`user`: Use the intraship username  \n`signature`: intraship password  \n`ekp`: Your dhl customer id  \n`api_user`: App ID from developer account  \n`api_password`: App token from developer account\n\n## WordPress and WooCommerce\n\nI build several Plugins for WordPress and WooCommerce - feel free to ask me for that.\n\n*Contact*  \n\nCheck out my website: [www.tricd.de](http://www.tricd.de)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftredmann%2Fdhl-php-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftredmann%2Fdhl-php-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftredmann%2Fdhl-php-sdk/lists"}