定制 vhl-europe/vhlcarrier 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

vhl-europe/vhlcarrier

最新稳定版本:1.0.0

Composer 安装命令:

composer require vhl-europe/vhlcarrier

包简介

vhlcarrier is a PHP library for VHL Europe's Carrier API

README 文档

README

This is a PHP shipping connector class that provides methods for interacting with shipping carriers.

Installation

To use this shipping connector, you need to have PHP installed. You can install the shipping connector by following these steps:

  1. Clone the repository: git clone https://github.com/VHL-Europe/vhlcarrier.git
  2. Include the shipping connector class in your PHP project.

or you can require the package via composer

composer require vhl-europe/vhlcarrier

Usage

First you need to load connector using:

use VHLEurope\VHLCarrier\Client;
$apikey = "your api key";
$client = new VHLEurope\VHLCarrier\Client($apikey);

Afterwars you can use one of the following methods:

1. getAllowedCarriers()

This method returns a list of allowed carriers for shipping. See example in examples/get_allowed_carriers.php

2. createOrder()

This method creates shipping order / awb / package and returns tracking number. See example in examples/create_order.php

3. getLabel()

This method returns shipping label for package in pdf format. See example in examples/get_label.php

4. getTracking()

This method returns tracking history for package. See example in examples/get_tracking.php

4. getDeliveryIDs()

This method returns pickup location for selected carrier. See example in examples/get_delivery_ids.php

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-01-17