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