vleks/bol-plaza-sdk 问题修复 & 功能扩展

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

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

vleks/bol-plaza-sdk

Composer 安装命令:

composer require vleks/bol-plaza-sdk

包简介

A PHP client SDK for the Bol.com Plaza API

README 文档

README

Latest Stable Version Total Downloads Latest Unstable Version License composer.lock

Installation

It's recommended that you use Composer to install the SDK.

composer require vleks/bol-plaza-sdk

This will install the Bol.com Plaza SDK.
PHP 5.6 or newer is required.

Usage

Create an index.php file with the following contents:

<?php
use Vleks\BolPlazaSDK\Client;
use Vleks\BolPlazaSDK\ClientException;

require 'vendor/autoload.php';

$publicKey  = '-- YOUR PUBLIC KEY --';
$privateKey = '-- YOUR PRIVATE KEY --';

$bolPlazaClient = new Client($publicKey, $privateKey);
$bolPlazaClient->setTestMode(true);

try {
    $orders = $bolPlazaClient->getOrders();

    var_dump($orders);
} catch (ClientException $clientException) {
    echo 'An error occurred: ' . $clientException->getMessage();
}

See the contents of the examples directory for more information.

Coverage

Not every Bol.com Plaza API endpoint is covered, check out the table for more details

API Endpoint Covered Client method
PUT /offers/v2/
GET /offers/v2/_parameters_
GET /offers/v2/export/
GET /offers/v2/export/_generated-file.csv_
DELETE /offers/v2/
GET /commission/v2/_parameters_
GET /reductions Yes getReductions
GET /reductions/latest Yes getLatestReductionsFilename
GET /services/rest/orders/v2 Yes getOrders
GET /services/rest/orders/v2/_order-id_
GET /services/rest/shipments/v2
GET /services/rest/shipments/v2/_shipment-id_
PUT /services/rest/transports/v2/_:id_
GET /services/rest/process-status/v2/_:id_
GET /services/rest/purchasable-shipping-labels/v2?orderItemId=_:id_
GET /services/rest/transports/v2/_:transportId_/shipping-label/_:shippingLabelId_
GET /services/rest/return-items/v2/unhandled
PUT /services/rest/return-items/v2/_:id_/handle
GET /services/rest/invoices Yes getInvoices
GET /services/rest/invoices/:invoice-id Yes getInvoice
GET /services/rest/invoices/_invoice-id_/specification Yes getInvoiceSpecification
GET /services/rest/inbounds Yes getInbounds
POST /services/rest/inbounds Yes createInbound
GET /services/rest/inbounds/fbb-transporters Yes getFbbTransporters
GET /services/rest/inbounds/delivery-windows Yes getDeliveryWindow
GET /services/rest/inbounds/_inbounds-id_ Yes getInbound
POST /services/rest/inbounds/productlabels Yes getProductlabels
GET /services/rest/inbounds/_inbound-id_/shippinglabel Yes getShippingLabel
GET /services/rest/inbounds/inbound-id/packinglistdetails Yes getPackingListDetails
GET /services/rest/inventory/parameters Yes getInventory

Tests

To execute the test suite, you'll need PHPUnit.

$ phpunit

License

The Bol.com Plaza SDK for PHP is licensed under the MIT licence.
See the license file for more information.

vleks/bol-plaza-sdk 适用场景与选型建议

vleks/bol-plaza-sdk 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 13.11k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2017 年 09 月 29 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「api」 「client」 「sdk」 「bol」 「plaza」 「Bol.com」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 vleks/bol-plaza-sdk 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 vleks/bol-plaza-sdk 我们能提供哪些服务?
定制开发 / 二次开发

基于 vleks/bol-plaza-sdk 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-09-29