dansmaculotte / mondialrelay-php
PHP SDK for MondialRelay Web Services
Installs: 4 039
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 4
Forks: 3
Open Issues: 1
Requires
- php: ^7.4||^8.0
- ext-soap: *
- laminas/laminas-soap: ^2.10
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.7
- phpunit/phpunit: ^9.5
README
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
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.