Skip to content

Latest commit

 

History

History
68 lines (45 loc) · 2.02 KB

ReadMe.md

File metadata and controls

68 lines (45 loc) · 2.02 KB

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.