Download the PHP package smart-dato/mondial-relay-shipping-sdk without Composer

On this page you can find all versions of the php package smart-dato/mondial-relay-shipping-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 mondial-relay-shipping-sdk

Mondial Relay Dual Carrier API V2 SDK for Laravel

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Create Mondial Relay / InPost shipments and print labels from Laravel using the Dual Carrier API V2. Labels can be retrieved as a PDF URL, raw ZPL/IPL printer code, or QR code.

Installation

Optionally publish the config file:

Set your credentials in .env:

While MONDIAL_RELAY_SHIPPING_SANDBOX is true, requests go to connect-api-sandbox.mondialrelay.com.

Usage

Delivery and collection modes

Enum case Code Meaning
DeliveryMode::PointRelais 24R Point Relais® delivery (requires deliveryLocation)
DeliveryMode::PointRelaisXL 24L Point Relais® XL delivery (multi-parcel capable)
DeliveryMode::HomeDelivery HOM Home delivery (requires recipient phone)
DeliveryMode::HomeDeliveryNextDay XOH D+1 home delivery (requires EDI setup)
DeliveryMode::MerchantDelivery LCC Delivery back to the merchant (returns)
CollectionMode::MerchantCollection CCC Collected at the merchant (outbound)
CollectionMode::PointRelaisCollection REL Dropped off at a Point Relais® (returns)
CollectionMode::PointRelaisReturn 24R Consumer return dropped off at a Point Relais®, combine with DeliveryMode::MerchantDelivery (LCC)

Label output

Batches

createShipments() accepts multiple shipments and never throws for individual failures:

Multiple accounts

The facade uses the credentials from the config file. To ship on behalf of other accounts, instantiate clients directly — every setting is a constructor argument:

Raw request & response

Every live call carries the raw HTTP exchange — on results and on all exceptions thrown after the request was built:

On a connection failure response and status are null but the request XML is still available. The exchange is excluded from toArray()/toJson() so serialized results never leak credentials.

Error handling

All exceptions extend SmartDato\MondialRelayShipping\Exceptions\MondialRelayShippingException:

API warnings never throw — read them via $created->warnings() or $result->warnings().

Testing

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of mondial-relay-shipping-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
ext-dom Version *
ext-simplexml Version *
illuminate/contracts Version ^12.0||^13.0
spatie/laravel-data Version ^4.23
spatie/laravel-package-tools Version ^1.16
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 smart-dato/mondial-relay-shipping-sdk contains the following files

Loading the files please wait ...