PHPackages                             msztorc/php-dpd-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. msztorc/php-dpd-api

ActiveLibrary[API Development](/categories/api)

msztorc/php-dpd-api
===================

DPD Api

2.1(8y ago)2020.9k11[2 issues](https://github.com/msztorc/php-dpd-api/issues)[1 PRs](https://github.com/msztorc/php-dpd-api/pulls)1MITPHPCI failing

Since Mar 18Pushed 5y ago3 watchersCompare

[ Source](https://github.com/msztorc/php-dpd-api)[ Packagist](https://packagist.org/packages/msztorc/php-dpd-api)[ RSS](/packages/msztorc-php-dpd-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (1)

php-dpd-api
===========

[](#php-dpd-api)

Set of PHP classes to handle API of courier services (DPD Poland)

[![Build Status](https://camo.githubusercontent.com/451fa4ee0e607e40977567b2910ab2c707aaf1bebb394682d98b71dda11d7530/68747470733a2f2f7472617669732d63692e6f72672f6d737a746f72632f7068702d6470642d6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/msztorc/php-dpd-api)[![License](https://camo.githubusercontent.com/30597ff9a350144f03bffdd9183e16468e0b3ca1193e1d08591d992622738d55/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](http://www.opensource.org/licenses/MIT)

Installation
------------

[](#installation)

```
composer require msztorc/php-dpd-api

```

or

```
git clone https://github.com/msztorc/php-dpd-api.git

```

of course you can also download zip file, unpack and include to your project

### Configuration file

[](#configuration-file)

Main configuration is located in `config.php` file

```
'fid' => '1495',
'username' => 'test', // username for api calls
'password' => 'KqvsoFLT2M', // password for api calls
'wsdl' => 'https://dpdservicesdemo.dpd.com.pl/DPDPackageObjServicesService/DPDPackageObjServices?WSDL',
'lang_code' => 'PL', // lang code (required for api v2)
'api_version' => 2, // version of api methods (available api version: 1 or 2)
'debug' => true, // debug errors to logfile
'log_path' => 'logs' // path of log files

```

### Usage

[](#usage)

**Full example**

```
