dansmaculotte/laposte-php

PHP SDK for La Poste API

1.1.1 2020-01-20 17:54 UTC

This package is auto-updated.

Last update: 2024-11-21 06:09:08 UTC


README

Latest Version Total Downloads Build Status Quality Score Code Coverage

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

La Poste Developer Portal

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.