An open API service indexing awesome lists of open source software.

https://github.com/mathishouis/chronopost-api

A PHP package to make the Chronopost API easier to use.
https://github.com/mathishouis/chronopost-api

api chronopost composer laravel php

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# Chronopost API

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

## Table of Contents

* [Requirements](#requirements)
* [Installation](#installation)
* [Usage](#usage)
* [Testing](#testing)

## 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
getPickupPointsFromZipCode('44000')); // will print array with all the pickup points

```
#

The following code return the package tracking informations.

```php
trackPackage('FD633119313NZ')); // will print array with the package tracking informations.

```

## Testing

```
php tests/ChronopostAPITest.php
```