PHP code example of quellabs / canvas-shipments-dpd

1. Go to this page and download the library: Download quellabs/canvas-shipments-dpd library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

quellabs / canvas-shipments-dpd example snippets


return [
    'delis_id'      => '',      // 6–10 character ID provided by DPD
    'password'      => '',      // password provided by DPD
    'sending_depot' => '',      // depot code from your DPD contract (e.g. '0522')
    'test_mode'     => false,
    'sender_address' => [
        'company'     => 'My Webshop B.V.',
        'name'        => 'Logistics Dept',
        'street'      => 'Keizersgracht',
        'number'      => '123',
        'postal_code' => '1015CJ',
        'city'        => 'Amsterdam',
        'cc'          => 'NL',
        'email'       => '[email protected]',
        'phone'       => '+31201234567',
    ],
];