Download the PHP package justinholtweb/craft-carrier-dpd without Composer

On this page you can find all versions of the php package justinholtweb/craft-carrier-dpd. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package craft-carrier-dpd

Carrier for DPD

DPD Croatia and DPD Slovenia through DPD EasyShip for Carrier, the shipping-carrier gateway for Craft Commerce 5.

Which EasyShip? This is DPD's own portal and web service at easyship.hr and easyship.si. It is not Easyship.com, the unrelated multi-carrier aggregator. If you sign in at easyship.hr or easyship.si, this is the right package; if you sign in at app.easyship.com, it is not.

This package translates the EasyShip API and nothing else. Packing, checkout, label storage, bulk printing, tracking schedules, the pickup-point picker and the log all live in Carrier.

What it does

Labels parcel/import, then parcel/print straight away, in the same purchase (see below)
Label formats PDF A4, PDF A6, ZPL
Services DPD Home (B2C), DPD Classic (B2B), DPD Pickup parcel shop or locker. With COD, each becomes its COD parcel type
Cash on delivery cod_amount in euros, cod_purpose (≤ 14 characters), and a setting for how multi-parcel COD is split
Void Deletes the parcel if it is unprinted, otherwise cancels it. Cancelled parcels drop off the manifest
Reprint parcel/print in batches, but only in the first two minutes or so (see below)
Tracking The latest status of each parcel. EasyShip offers no history and no timestamps
Collections pickupdiff/import, with at least 30 minutes' notice
End of day Today's manifest PDF, plus the COD manifest when any shipment carries cash

EasyShip has no rates. Price DPD methods with table rates. DPD documents no test system: its own advice is to test in production and delete the parcel while it is unprinted.

Labels vanish after two minutes

About two minutes after a parcel is first printed, EasyShip sends its data to DPD, and from then on every print of it returns an empty PDF. This package fetches the label in the same request that creates the parcel, and Carrier stores those bytes, so your labels are always available from Carrier. A later reprint that comes back empty is reported as an error explaining this, and Carrier keeps the original. If EasyShip creates a parcel but will not print it, the parcel is deleted (still possible, since it was never printed) and the purchase can simply be retried.

Setting up

  1. Install Carrier, then this package: composer require justinholtweb/craft-carrier-dpd and php craft plugin/install carrier-dpd.
  2. In Carrier → Connections, add a DPD EasyShip connection:
    • EasyShip country: Croatia or Slovenia. The accounts are separate.
    • Username and password: your EasyShip portal login. DPD issues no separate API key. Store the password in an environment variable.
    • Print the ship-from address on labels: leave this off to print the sender saved in your EasyShip profile.
  3. Press Test connection.

Addresses need a house number separate from the street. Carrier splits "Ilica 242a" automatically and recognises Croatian "bb" (no number). An address with no number at all is refused before anything is sent. Home and parcel-shop delivery need the recipient's phone number or email address, so make sure your checkout collects a phone number (Commerce addresses have no phone field; map one in Carrier's settings).

Parcel shops

EasyShip has no list of parcel shops. DPD's manual tells you to ask your local DPD office for the PUDO ids and locations, and DPD's public shop finder cannot be read by a server. So the list comes from you:

  1. Ask DPD Croatia or DPD Slovenia for the parcel-shop list.
  2. Save it as a CSV with these columns (header row required; id, name and country are mandatory):

    • id: the PUDO id, HR or SI followed by five digits (at most 7 characters)
    • type: shop or locker (default shop)
    • latitude / longitude: decimal degrees, for distance sorting in the picker
    • cod: 0 or no if the point does not take cash on delivery (default yes)
    • A semicolon-separated file works too.
  3. Import it in Carrier → Pickup points → Import for your DPD connection.

DPD connections use Carrier's manual point mode: nothing is ever synced, so imported points are only changed by you. Re-import whenever DPD sends you an updated list. You can also type a PUDO id on the shipment screen. Either way, parcel-shop delivery needs a point id: EasyShip refuses D-B2C-PSD parcels without one, and also wants the parcel's weight, the recipient's mobile number and the parcel's dimensions. Carrier checks for all of these before sending.

Unverified

This package was written against DPD's published EasyShip manual (v2.2, August 2025) without a live account. These points are marked UNVERIFIED in the code and should be checked on a first live shipment:

Requirements

Craft CMS 5.3+, Craft Commerce 5, Carrier 5, PHP 8.2+.

Licence

The Craft License. See Carrier, which is commercial.


All versions of craft-carrier-dpd with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
craftcms/cms Version ^5.3.0
justinholtweb/craft-carrier Version ^5.0.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package justinholtweb/craft-carrier-dpd contains the following files

Loading the files please wait ...