Download the PHP package datalinx/dpd-php-sdk without Composer

On this page you can find all versions of the php package datalinx/dpd-php-sdk. 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 dpd-php-sdk

PHP SDK for the DPD EasyShip API

Packagist PHP Version Support Packagist Version Packagist Downloads Tests codecov Conventional Commits Packagist License

About

This package implements the DPD EasyShip API for Slovenia and Croatia.
It appears each region has its own version, so this will not work for any other country, nor will any other implementation work for Slovenia and Croatia.

Requirements

Note: the package works on PHP 8.2, but currently testing in CI for 8.2 fails, because it is still not supported in the php-vcr package, which we use for testing.

Installing

Download it with composer: `

Usage

Currently, only the ParcelImport endpoint is implemented.

Contributing

Pull requests for new endpoint implementations are highly welcome.

If you have some suggestions how to make this package better, please open an issue or even better, submit a pull request.

Should you want to contribute, please see the development guidelines in the DataLinx PHP package template.

Running tests

By default, the tests run against static fixtures which were captured by the php-vcr package.

If you want to update the fixtures or run the tests against the live (but still testing) API provided by DPD, you need the username and password to run them. You can get them by writing to [email protected].

Once you have the credentials, you can set them in phpunit.xml.

After that, you also need to set a environment variable with the name LIVE and value 1. This will delete the fixtures before running the tests, which forces live requests to be made.

Developer resources

Changelog

All notable changes to this project are automatically documented in the release-please GitHub action.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

For all this to work, commit messages must follow the Conventional commits specification, which is also enforced by a Git hook.


All versions of dpd-php-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
ext-curl Version *
ext-json Version *
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 datalinx/dpd-php-sdk contains the following files

Loading the files please wait ....