This library aims to facilitate the usage of La Poste API Services
- PHP 7.2
- Json Extension
You can install the package via composer:
composer require dansmaculotte/laposte-php
use DansMaCulotte\LaPoste\AddressControl;
$addressControl = new AddressControl($this->apiKey);
$results = $addressControl->find('7 rue Mélingue 14000 Caen');
print_r($results);
use DansMaCulotte\LaPoste\AddressControl;
$addressControl = new AddressControl($this->apiKey);
$results = $addressControl->detail('260621288');
print_r($results);
use DansMaCulotte\LaPoste\Tracking;
$tracking = new Tracking($this->apiKey);
$results = $tracking->track('1111111111111');
print_r($results);
use DansMaCulotte\LaPoste\Tracking;
$tracking = new Tracking($this->apiKey);
$results = $tracking->list(['1111111111111', '1111111111119']);
print_r($results);
The MIT License (MIT). Please see License File for more information.