PHP code example of m-paap / veloyd-api

1. Go to this page and download the library: Download m-paap/veloyd-api 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/ */

    

m-paap / veloyd-api example snippets


$address = new \Veloyd\Resources\Address(
    $name,
    $street,
    $nr,
    $postalCode,
    $city,
    $country,
    $email,
    $attention,
    $addition,
    $street2
);

$parcel = $veloyd->options(
    $address,
    $options
);

$address = new \Veloyd\Resources\Address(
    $name,
    $street,
    $nr,
    $postalCode,
    $city,
    $country,
    $email,
    $attention,
    $addition,
    $street2
);

$parcel = $veloyd->create(
    $address,
    $options,
    $reference
);