Skip to content

dansmaculotte/mondialrelay-php

Repository files navigation

Mondial Relay Web Services PHP SDK

Latest Version Total Downloads Build Status Quality Score Code Coverage

This library aims to facilitate the usage of Mondial Relay Web Services

Services

Installation

Requirements

  • PHP 7.4
  • Soap Extension

You can install the package via composer:

composer require dansmaculotte/mondialrelay-php

Usage

MondialRelay Documentation

Find pickup points

use DansMaCulotte\MondialRelay\DeliveryChoice;

$delivery = new DeliveryChoice(
    [
        'site_id' => MONDIAL_RELAY_SITE_ID,
        'site_key' => MONDIAL_RELAY_SITE_KEY,
    ]
);

$result = $delivery->findPickupPoints('FR', '75001', 'FR');

print_r($result);

Find pickup points by code

use DansMaCulotte\MondialRelay\DeliveryChoice;

$delivery = new DeliveryChoice(
    [
        'site_id' => MONDIAL_RELAY_SITE_ID,
        'site_key' => MONDIAL_RELAY_SITE_KEY,
    ]
);

$result = $delivery->findPickupPointByCode('FR', '062049');

print_r($result);

License

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