dansmaculotte/mondialrelay-php

PHP SDK for MondialRelay Web Services

1.4.3 2022-06-27 08:43 UTC

This package is auto-updated.

Last update: 2024-10-27 14:07:40 UTC


README

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.