dansmaculotte / laposte-php
PHP SDK for La Poste API
1.1.1
2020-01-20 17:54 UTC
Requires
- php: ^7.2
- ext-json: *
- guzzlehttp/guzzle: ^6.5
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
- phpunit/phpunit: ^8.5
- vlucas/phpdotenv: ^4.1
This package is auto-updated.
Last update: 2024-11-21 06:09:08 UTC
README
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.