Skip to content

A PHP package to make the Chronopost API easier to use.

License

Notifications You must be signed in to change notification settings

mathishouis/chronopost-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chronopost API

A PHP package to make the Chronopost API easier to use.

Table of Contents

Requirements

  • PHP 7.3, 8.0 or 9.0

Installation

composer require kozennnn/chronopost-api

Usage

The following code return all the available Chronopost Pickup points.

<?php

use Kozennnn\ChronopostAPI\ChronopostAPI;

$chronopost = new ChronopostAPI();
print_r($chronopost->getPickupPointsFromZipCode('44000')); // will print array with all the pickup points

The following code return the package tracking informations.

<?php

use Kozennnn\ChronopostAPI\ChronopostAPI;

$chronopost = new ChronopostAPI();
print_r($chronopost->trackPackage('FD633119313NZ')); // will print array with the package tracking informations.

Testing

php tests/ChronopostAPITest.php

About

A PHP package to make the Chronopost API easier to use.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages