Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dansmaculotte/mondialrelay-php
PHP SDK for Mondial Relay Web Service
https://github.com/dansmaculotte/mondialrelay-php
mondial-relay php
Last synced: about 1 month ago
JSON representation
PHP SDK for Mondial Relay Web Service
- Host: GitHub
- URL: https://github.com/dansmaculotte/mondialrelay-php
- Owner: dansmaculotte
- License: mit
- Created: 2019-06-27T07:22:40.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-06-27T08:48:26.000Z (over 2 years ago)
- Last Synced: 2024-02-23T09:45:15.879Z (11 months ago)
- Topics: mondial-relay, php
- Language: PHP
- Homepage:
- Size: 68.4 KB
- Stars: 4
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: ReadMe.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Mondial Relay Web Services PHP SDK
[![Latest Version](https://img.shields.io/packagist/v/DansMaCulotte/mondialrelay-php.svg?style=flat-square)](https://packagist.org/packages/dansmaculotte/mondialrelay-php)
[![Total Downloads](https://img.shields.io/packagist/dt/DansMaCulotte/mondialrelay-php.svg?style=flat-square)](https://packagist.org/packages/dansmaculotte/mondialrelay-php)
[![Build Status](https://img.shields.io/travis/DansMaCulotte/mondialrelay-php/master.svg?style=flat-square)](https://travis-ci.org/dansmaculotte/mondialrelay-php)
[![Quality Score](https://img.shields.io/scrutinizer/g/DansMaCulotte/mondialrelay-php.svg?style=flat-square)](https://scrutinizer-ci.com/g/dansmaculotte/mondialrelay-php)
[![Code Coverage](https://img.shields.io/coveralls/github/DansMaCulotte/mondialrelay-php.svg?style=flat-square)](https://coveralls.io/github/dansmaculotte/mondialrelay-php)> This library aims to facilitate the usage of Mondial Relay Web Services
## Services
- [Delivery Choice](https://api.mondialrelay.com/Web_Services.asmx?op=WSI4_PointRelais_Recherche)
## Installation
### Requirements
- PHP 7.4
- Soap ExtensionYou can install the package via composer:
``` bash
composer require dansmaculotte/mondialrelay-php
```## Usage
[MondialRelay Documentation](https://www.mondialrelay.fr/media/108937/Solution-Web-Service-V5.6.pdf)
#### Find pickup points
```php
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
```php
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](LICENSE.md) for more information.