sergeevpasha/laravel-dpd

Tiny DPD API wrapper for Laravel
2,197 1
Install
composer require sergeevpasha/laravel-dpd
Latest Version:v2.0.3
PHP:^8.0
License:MIT
Last Updated:Mar 12, 2024
Links: GitHub  ·  Packagist
Maintainer: sergeevpasha

Maintainability Test Coverage CodeFactor Generic badge Generic badge

IMPORTANT UPDATE

DPD made lots of changes, so the best way I see it is having DPD API as a service, so starting from now on this package will have only a few basic functionality required for it, consider using it (will be available later) instead.

Laravel DPD API Wrapper

Allows you to:

  • Get all DPD cities
  • Get all DPD Terminals
  • Calculate a delivery

Pre-requirements

You need to get DPD API key, user, login and password. Key can be obtained in your cabinet at https://www.dpd.ru/ols/order/personal/integrationKey.do2

Installation

Configuration

This package has a few configuration values:

After installing, you may just import the client

Now we can use these methods:

Delivery Object

To build a Delivery object you will need to pass an array to fromArray() method just like that:

Available countries

If you need to specify a country you need to use one of these codes:

Available services

If you need to specify a service you need to use one of these codes:

Related Packages

bernhardk/laravel-dpd

Laravel package for using DPD Webservices to submit shipment to dpd und retrieve...

3,527 14
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

631,580,251 9,707
laravel/framework

The Laravel Framework.

580,311,802 34,925
laravel/tinker

Powerful REPL for the Laravel framework.

489,754,436 7,444
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

404,034,618 608