Download the PHP package qhayat/php-mondialrelay-webservice without Composer
On this page you can find all versions of the php package qhayat/php-mondialrelay-webservice. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download qhayat/php-mondialrelay-webservice
More information about qhayat/php-mondialrelay-webservice
Files in qhayat/php-mondialrelay-webservice
Package php-mondialrelay-webservice
Short Description PHP interface for Mondial Relay webservice.
License MIT
Informations about the package php-mondialrelay-webservice
PHP Mondialrelay Webservice
An expressive, fluent interface to Mondial Relay's shipping services.
Installation
Install using Composer :
Note: you must have PHP with Soap enabled.
Getting started
Usage
Webservice
You must obtain Mondial Relay credentials to use the webservice.
You could use Mondial Relay test credentials to try the webservice:
- Enseigne (merchant):
BDTEST13
- Private key:
PrivateK
Available methods
Method name | Webservice method name |
---|---|
searchPostcode() |
WSI2_RechercheCP |
searchPostcode() |
WSI2_RechercheCP |
statLabel() |
WSI2_STAT_Label |
searchParcelshop() |
WSI4_PointRelais_Recherche |
createLabel() |
WSI2_CreationEtiquette |
createShipping() |
WSI2_CreationExpedition |
getLabels() |
WSI3_GetEtiquettes |
trackParcel() |
WSI2_TracingColisDetaille |
Results
You can retrieve webservice results as a PHP StdClass Object or in Json format.
Last method call
You could retrieve the results, parameters or call another request of the webservice using method
attribute that contains the last method call:
Parameters
The parameters you pass throught the method are automatically checked based on Mondial Relay regex patterns.
Postal code parameters and phone numbers parameters are automatically checked depending the country parameter they depends on.
Get setted parameters
You can check the setted parameters of the last method you called using:
Get error parameters
If at least one of your parameter doesn't match its regex patterns during the parameters checking, an exception will be thrown to prevent useless webservice call.
You could retrieve these errors:
Documentation
Tests
If you want to test something specific, just add the filename you want to test.
Example: