pugofka/dpd

laravel package for work with DPD shipment

0.5.0 2022-03-29 16:25 UTC

This package is not auto-updated.

Last update: 2024-11-06 04:59:36 UTC


README

Laravel package for DPD logistic (Russian logistic service)

Usage

use Pugofka\Dpd\Dpd;

$dpd = new Dpd();

// get all available cities
$dpd->getCities();

// calculate delivery cost
$dpd->getCostCommon (
    string $from, // ID city from
    string $to, // ID city to
    bool $selfPickup = true, 
    bool $selfDelivery=false, 
    float $weight = 0, // weight in kg
    float $declaredValue = 0, 
    $pickupDate = null, // format 2014-05-21
    float $volume = null 
);

// get all available pickpoints
$dpd->getPickPoints();

// get all available terminals
$dpd->getTerminals();