flavienbwk/colissimo-api 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

flavienbwk/colissimo-api

Composer 安装命令:

composer require flavienbwk/colissimo-api

包简介

A php package to track Colissimo (La Poste) parcels

README 文档

README

Build Status

colissimo-api

A php package to track Colissimo (La Poste) parcels

Requirements

  • PHP >= 7.0
  • XML PHP Extension
  • Curl PHP Extension

Installation

composer require flavienbwk/colissimo-api

Usage

require 'vendor/autoload.php';

$colissimo = new \flavienbwk\ColissimoApi\ColissimoApi();

try {
    $result = $colissimo->get('your_colissimo_id_here');
} catch (\flavienbwk\ColissimoApi\ColissimoApiException $e) {
    // ...
}

The result is an array of chronological status:

array(5) {
  [0] =>
  array(3) {
    'date' =>
    string(10) "30/05/2018"
    'label' =>
    string(23) "Votre colis est livré."
    'location' =>
    string(18) "Centre Courrier 75"
  }
  [1] =>
  array(3) {
    'date' =>
    string(10) "30/05/2018"
    'label' =>
    string(50) "Votre colis est en préparation pour la livraison."
    'location' =>
    string(18) "Centre Courrier 75"
  }
  [2] =>
  array(3) {
    'date' =>
    string(10) "30/05/2018"
    'label' =>
    string(52) "Votre colis est arrivé sur son site de distribution"
    'location' =>
    string(18) "Centre Courrier 75"
  }
  [3] =>
  array(3) {
    'date' =>
    string(10) "29/05/2018"
    'label' =>
    string(40) "Votre colis est en cours d'acheminement."
    'location' =>
    string(16) "Plateforme Colis"
  }
  [4] =>
  array(3) {
    'date' =>
    string(10) "28/05/2018"
    'label' =>
    string(110) "Votre colis a été déposé après l'heure limite de dépôt. Il sera expédié dès le prochain jour ouvré."
    'location' =>
    string(28) "Bureau de Poste Les estables"
  }
}

Run tests

composer test

You may need to update the id in /tests/ColissimoApiTest.php because the id is only valid for 90 days.

统计信息

  • 总下载量: 334
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 11
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-07-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固