1. Go to this page and download the library: Download dansmaculotte/laposte-php library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dansmaculotte / laposte-php example snippets
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);
bash
composer
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.